tags 639139 upstream thanks
@John, I think this is a challenge for you:
On 11-08-24 at 09:34am, Daniel Kahn Gillmor wrote:
>
> markdown2pdf chokes on the attached markdown file (dice.mdwn):
>
> 0 dkg@pip:~$ markdown2pdf dice.mdwn
> markdown2pdf: ! Package ucs Error: Unknown Unicode character 9856 = U+2680,
> Package ucs Warning: Unknown character 9856 = 0x2680 appeared again. on input
> l
> ! Package ucs Error: Unknown Unicode character 9860 = U+2684,
> ! Package ucs Error: Unknown Unicode character 9861 = U+2685,
>
> 1 dkg@pip:~$
>
> It returns a non-zero error code (the 1 in my prompt above) and
> produces no output file.
>
> The file contains unicode characters DIE FACE-1, DIE FACE-5, and DIE
> FACE-6, which i think should be treatable as normal characters.
>
> Not sure if it matters, but i'm using the texlive-latex backend
> instead of texlive-xetex as you can see from the suggests: below.
A new upstream release of Pandoc has just been released for Debian.
Unfortunately that one fails also, with a different error:
jonas@auryn:~$ markdown2pdf dice.mdwn
markdown2pdf: ! Package inputenc Error: Unicode char \u8:⚀ not set up
for use with LaTeX.
See the inputenc package documentation for explanation.
Type H <return> for immediate help.
...
l.31 ... of dice, and they came up Snake Eyes! ⚀
⚀
Here is how much of TeX's memory you used:
5755 strings out of 494396
75594 string characters out of 1166894
131317 words of memory out of 3000000
8964 multiletter control sequences out of 15000+50000
3640 words of font info for 14 fonts, out of 3000000 for 9000
413 hyphenation exceptions out of 8191
38i,1n,24p,247b,38s stack positions out of
5000i,500n,10000p,200000b,50000s
! ==> Fatal error occurred, no output PDF file produced!
jonas@auryn:~$ echo $?
1
Upstream changelog mentions some improvements in utf8 handling of
markdown2pdf but this:
+ LaTeX: Removed `ucs` package, use `utf8` rather than `utf8x`
with `inputenc`. This covers fewer characters but is more
robust with other packages, and `ucs` is unmaintained. Users
who need better unicode support should use xelatex or lualatex.
However, both xelatex and luatex fails as well:
jonas@auryn:~$ markdown2pdf --xetex dice.mdwn
markdown2pdf: !
Missing character: There is no ⚀ in font
[lmroman10-regular]:mapping=tex-text
!
Missing character: There is no ⚄ in font
[lmroman10-regular]:mapping=tex-text
!
Missing character: There is no ⚅ in font
[lmroman10-regular]:mapping=tex-text
!
[1
] (/tmp/user/1000/pandoc/dice.aux) )
Here is how much of TeX's memory you used:
10029 strings out of 495104
150048 string characters out of 1176671
232707 words of memory out of 3000000
13144 multiletter control sequences out of 15000+50000
3648 words of font info for 15 fonts, out of 3000000 for 9000
413 hyphenation exceptions out of 8191
40i,4n,35p,509b,299s stack positions out of
5000i,500n,10000p,200000b,50000s
Output written on /tmp/user/1000/pandoc/dice.pdf (1 page).
jonas@auryn:~$ echo $?
1
jonas@auryn:~$ markdown2pdf --luatex dice.mdwn
markdown2pdf: !
********************************************
* XeTeX is required to compile this document.
* Sorry!
********************************************.
\RequireXeTeX ...********************************}
\endgroup \fi
l.18 \RequireXeTeX
Here is how much of LuaTeX's memory you used:
1130 strings out of 494778
100000,266212 words of node,token memory allocated
258 words of node memory still in use:
2 hlist, 1 rule, 40 glue_spec, 3 if_stack, 1 write, 1 dir nodes
avail lists: 2:9,3:1,6:2,9:2
4643 multiletter control sequences out of 65536+50000
15 fonts using 602239 bytes
27i,0n,24p,198b,36s stack positions out of
5000i,500n,10000p,200000b,50000s
! ==> Fatal error occurred, no output PDF file produced!
jonas@auryn:~$ echo $?
1
The XeTeX error looks like the template might perhaps benefit from using
a different font, and the LuaTeX one smells like something more broken
(I forgot to add suggests to the newly release Pandoc package but
texlive-luatex is indeed install currently on my system).
> Thanks for maintaining pandoc in debian!
Thanks for using it (or at least trying) and reporting issues! :-D
- Jonas
--
* Jonas Smedegaard - idealist & Internet-arkitekt
* Tlf.: +45 40843136 Website: http://dr.jones.dk/
[x] quote me freely [ ] ask before reusing [ ] keep private
signature.asc
Description: Digital signature

