Läuft die Voice Acoustic VA-Remotecontrol (AllDSP AllControl) nativ unter Linux auf echtem wxGTK 3.0 — ohne Wine und ohne dekompilierten App-Code. Ausgeführt wird das unveränderte Python-2.7-Bytecode aus dem macOS-.app; C-Extensions (wxGTK/numpy/ scipy/PortAudio) kommen nativ aus Debian stretch. Enthält: va/ (Original-.pyc + pure-Python-Libs + Assets + launch.py mit den drei Linux-Fixes), Dockerfile/run.sh/entrypoint.sh, reference/ (dekompilierter Quellcode zum Debuggen) und README/STATUS. img.cache (378 MB, regenerierbar) ist per .gitignore ausgeschlossen. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
31 lines
666 B
Python
31 lines
666 B
Python
#!/usr/bin/env python
|
|
|
|
"Simple test to check alias_nb_pages replacement under unicode fonts"
|
|
|
|
from fpdf import FPDF
|
|
|
|
pdf=FPDF()
|
|
|
|
# set default alias: {nb} that will be replaced with total page count
|
|
pdf.alias_nb_pages()
|
|
|
|
# Add a Unicode font (uses UTF-8)
|
|
pdf.add_font('DejaVu','','DejaVuSansCondensed.ttf',uni=True)
|
|
pdf.set_font('DejaVu','',14)
|
|
|
|
for i in range(5):
|
|
pdf.add_page()
|
|
pdf.set_font('Arial','B',16)
|
|
pdf.cell(40,10,'Hello World! {nb}')
|
|
pdf.set_font('DejaVu','',14)
|
|
pdf.cell(40,10,'Hello World! unicode {nb}')
|
|
|
|
fn = 'nb_pages.pdf'
|
|
pdf.output(fn, 'F')
|
|
|
|
import os
|
|
try:
|
|
os.startfile(fn)
|
|
except:
|
|
os.system("xdg-open \"%s\"" % fn)
|