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>
39 lines
988 B
Python
39 lines
988 B
Python
# -*- coding: utf-8 -*-
|
|
|
|
"Example of unicode support based on tfPDF http://www.fpdf.org/en/script/script92.php"
|
|
|
|
#PyFPDF-cover-test:format=PDF
|
|
#PyFPDF-cover-test:fn=ex.pdf
|
|
#PyFPDF-cover-test:hash=f77f71491e1662a732212861a2d87928
|
|
#PyFPDF-cover-test:res=font/DejaVuSansCondensed.ttf
|
|
#PyFPDF-cover-test:res=HelloWorld.txt
|
|
|
|
import common
|
|
from fpdf import FPDF
|
|
|
|
import os
|
|
|
|
def dotest(outputname, nostamp):
|
|
pdf = FPDF()
|
|
if nostamp:
|
|
pdf._putinfo = lambda: common.test_putinfo(pdf)
|
|
|
|
pdf.add_page()
|
|
# Add a Unicode font (uses UTF-8)
|
|
pdf.add_font('DejaVu', '', \
|
|
os.path.join(common.basepath, "font", 'DejaVuSansCondensed.ttf'), \
|
|
uni = True)
|
|
pdf.set_font('DejaVu','',14)
|
|
|
|
# Load a UTF-8 string from a file and print it
|
|
txt = open(os.path.join(common.basepath, "HelloWorld.txt"), "rb").\
|
|
read().decode("UTF-8")
|
|
pdf.write(8, txt)
|
|
|
|
|
|
pdf.output(outputname, 'F')
|
|
|
|
if __name__ == "__main__":
|
|
common.testmain(__file__, dotest)
|
|
|