Not a plugin, but conf.py additions.  Do something like this:

 . . .
latex_elements = {
    # The paper size ('letterpaper' or 'a4paper').
    #'papersize': 'letterpaper',

    # The font size ('10pt', '11pt' or '12pt').
    #'pointsize': '10pt',

    # Additional stuff for the LaTeX preamble.
    #
    # The following comes from
    # https://github.com/rtfd/readthedocs.org/issues/416
    # and http://www.utf8-chartable.de/unicode-utf8-table.pl?start=9472&names=-
    #
    'preamble': "".join((
        '\usepackage{pifont}',                # To get Dingbats
        '\DeclareUnicodeCharacter{00A0}{ }',  # NO-BREAK SPACE
        '\DeclareUnicodeCharacter{2014}{\dash}', # LONG DASH
        '\DeclareUnicodeCharacter{251C}{+}',  # BOX DRAWINGS LIGHT
VERTICAL AND RIGHT
        '\DeclareUnicodeCharacter{2514}{+}',  # BOX DRAWINGS LIGHT UP AND RIGHT
        '\DeclareUnicodeCharacter{1F37A}{ }', # Beer emoji (just turn
into space for now)
        '\DeclareUnicodeCharacter{2588}{\textblock}',  # SOLID TEXT BLOCK
        '\DeclareUnicodeCharacter{25CF}{\ding{108}}',  # Dingbat 108
(black circle)
    )),
}

 . . .


On Thu, Apr 13, 2017 at 9:41 AM, Jim Klo <[email protected]> wrote:
> Greetings,
>
> I'm using the output from unix tree which produces neatly drawn ascii line
> segments to represent a filesystem hierarchy. It uses some extended ascii
> characters like '├', '─', and '└' which are not recognized by
> sphinx/docutils.  I just get an error like the following when trying to
> generate HTML output:
>
>
> ...
>
>      [exec] line 6:0 token recognition error at: '├'
>
>      [exec] line 6:1 token recognition error at: '─'
>
>      [exec] line 6:2 token recognition error at: '─'
>
>      [exec] line 7:0 token recognition error at: '└'
>
>      [exec] line 7:1 token recognition error at: '─'
>
>      [exec] line 7:2 token recognition error at: '─'
>
> ...
>
>
> Anyone know if there is a plugin or config setting I can used to rectify
> that?
>
>
> FWIW: this is what a sample of the RST looks like:
>
>
> ::
>
>
>     .
>
>     ├── build
>
>     ├── dep-source
>
>     ├── scripts
>
>     ├── sunflower-native
>
>     └── sunflower-native-build
>
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "sphinx-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at https://groups.google.com/group/sphinx-users.
> For more options, visit https://groups.google.com/d/optout.



-- 
Dave Dittrich
[email protected]

-- 
You received this message because you are subscribed to the Google Groups 
"sphinx-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/sphinx-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to