Re: A new Scripter API documentation

José Antonio Rocha <[email protected]>
Newsgroups gmane.comp.graphics.scribus
Message-ID <CAM5a0KQoHs=Q+YDPW1sGr39oDq3D=uTTy=2oaOEDgmcNZvHH8A@mail.gmail.com>
Em sáb., 15 de ago. de 2020 às 07:11, ale rimoldi <[email protected]>
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: [email protected]
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>
___
Scribus Mailing List: [email protected]
Edit your options or unsubscribe:
http://lists.scribus.net/mailman/listinfo/scribus
See also:
http://wiki.scribus.net
http://forums.scribus.net
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.