[scribus] A new Scripter API documentation

José Antonio Rocha joseantoniorocha at gmail.com
Sun Aug 16 21:22:39 UTC 2020


Em sáb., 15 de ago. de 2020 às 07:11, ale rimoldi <ale.comp_06 at xox.ch>
escreveu:

>
> For those who are willing to help out, I could need a hand for
> improving the docstrings:
>

# To help text formating in Scribus

# Line 8:
# To avoid error:
# Traceback (most recent call last):
#   File "<console>", line 1, in <module>
# PermissionError: [Errno 13] Permission denied: 'api.txt'
-- sys.stdout = open("api.txt", "w")
++ sys.stdout = open("./api.txt", "w")

# Line 32
-- print('Constants')
++ print('<h2>Constants')
# Lines 36-37; 44-45
--    print(command[0])
--    print(command[1] + ': ' + command[2])
++    print('<Command>' + command[0])
++    print('<Syntax>' + command[1] + ': ' + command[2])
# Line 40
-- print('Functions')
++ print('<h2>Functions')

Create Scribus paragraph styles "<Command>", "<Syntax>" and "<h2>".
Import as text filtering to apply the paragraphs styles and erase the marks.

-- 
Nome: "José Antonio Meira da Rocha
<https://plus.google.com/+Jos%C3%A9AntonioMeiradaRocha/>"
Email: joseantoniorocha at gmail.com
Veículo: [ http://meiradarocha.jor.br ]
ORCID: http://orcid.org/0000-0002-5892-1027
Fones/WhatsApp: [ 55-98448-3866  55-3744-2994 ] 🐊
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.scribus.net/pipermail/scribus/attachments/20200816/b92810fb/attachment.htm>


More information about the scribus mailing list