English: Below goes the most stripped source code that works with
LibreOffice 6.4.6.2 and newer, after copying it to a "Chess symbols.fodt" file. The fonts
DejaVu LGC Sans (or DejaVu Sans),
FreeSerif,
Pecita and
Quivira must be installed so the document renders properly. Tabs are needed because the Pecita typeface has a very large default space and would not be vertically aligned with the other typefaces. After rendering the document, it can be exported as
PDF/UA (LibreOffice 7 and newer) or just as
PDF and then converted to
SVG (because as of 2020/10/12 PDF thumbnails aren't rendered by
MediaWiki as crispy
PNG images, but as
JPEG with annoying compression artifacts). Finally, the SVG imagem can be optimized.
Português: Abaixo está o código fonte mais simplificado e que funciona com o
LibreOffice 6.4.6.2 e mais novos, após copiá-lo para um arquivo "Chess symbols.fodt". As fontes
DejaVu LGC Sans (ou DejaVu Sans),
FreeSerif,
Pecita e
Quivira precisam estar instaladas para que o documento seja renderizado adequadamente. Tabulações são necessárias porque o tipo de letra Pecita tem um tamanho de espaço padrão muito largo e não teria alinhamento vertical com os outros tipos de letra. Após renderizar o documento, pode ser exportado um
PDF/UA (LibreOffice 7 e mais novos) ou apenas como PDF e então convertido para
SVG (porque desde 2020/10/12 as miniaturas de PDF não são renderizadas pelo
MediaWiki como imagens
PNG cristalinas, mas como
JPEG com artefatos de compressão incômodos). Por fim, pode ser feita a otimização da imagem SVG.
<?xml version="1.0" encoding="UTF-8"?> <office:document xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0" xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" xmlns:fo="urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0" xmlns:style="urn:oasis:names:tc:opendocument:xmlns:style:1.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:text="urn:oasis:names:tc:opendocument:xmlns:text:1.0" office:mimetype="application/vnd.oasis.opendocument.text"> <office:meta><dc:title>Chess symbols</dc:title></office:meta> <office:styles> <style:default-style style:family="paragraph"> <style:paragraph-properties fo:text-align="center"/> <style:text-properties fo:font-size="24pt" fo:language="zxx" fo:country="none"/> </style:default-style> <style:style style:name="Separator" style:family="paragraph" style:parent-style-name="Standard"> <style:text-properties fo:font-size="12pt"/> </style:style> <style:style style:name="DejaVu" style:family="paragraph" style:parent-style-name="Standard"> <style:text-properties fo:font-family="'DejaVu LGC Sans', 'DejaVu Sans'"/> </style:style> <style:style style:name="FreeSerif" style:family="paragraph" style:parent-style-name="Standard"> <style:text-properties fo:font-family="FreeSerif"/> </style:style> <style:style style:name="Pecita" style:family="paragraph" style:parent-style-name="Standard"> <style:text-properties fo:font-family="Pecita"/> </style:style> <style:style style:name="Quivira" style:family="paragraph" style:parent-style-name="Standard"> <style:text-properties fo:font-family="Quivira"/> </style:style> </office:styles> <office:automatic-styles> <style:page-layout style:name="pm1"> <style:page-layout-properties fo:page-width="7.1cm" fo:page-height="9.8cm" fo:margin-top="0cm" fo:margin-bottom="0cm" fo:margin-left="0cm" fo:margin-right="0cm"/> </style:page-layout> </office:automatic-styles> <office:master-styles> <style:master-page style:name="Standard" style:page-layout-name="pm1"/> </office:master-styles> <office:body> <office:text> <text:p text:style-name="DejaVu">♔<text:tab/>♕<text:tab/>♖<text:tab/>♗<text:tab/>♘<text:tab/>♙<text:line-break/>♚<text:tab/>♛<text:tab/>♜<text:tab/>♝<text:tab/>♞<text:tab/>♟︎</text:p> <text:p text:style-name="Separator"/> <text:p text:style-name="FreeSerif">♔<text:tab/>♕<text:tab/>♖<text:tab/>♗<text:tab/>♘<text:tab/>♙<text:line-break/>♚<text:tab/>♛<text:tab/>♜<text:tab/>♝<text:tab/>♞<text:tab/>♟︎</text:p> <text:p text:style-name="Separator"/> <text:p text:style-name="Quivira">♔<text:tab/>♕<text:tab/>♖<text:tab/>♗<text:tab/>♘<text:tab/>♙<text:line-break/>♚<text:tab/>♛<text:tab/>♜<text:tab/>♝<text:tab/>♞<text:tab/>♟︎</text:p> <text:p text:style-name="Separator"/> <text:p text:style-name="Pecita">♔<text:tab/>♕<text:tab/>♖<text:tab/>♗<text:tab/>♘<text:tab/>♙<text:line-break/>♚<text:tab/>♛<text:tab/>♜<text:tab/>♝<text:tab/>♞<text:tab/>♟︎</text:p> </office:text> </office:body> </office:document>