On 25 July 2017 at 05:54, Ken McGlothlen <[email protected]> wrote:
> So, I managed to solve the problem, but I'm not sure it was my fault or not.
>
> Python 2.7's re module apparently does something strange when you switch to
> Unicode mode. Normally, of course, \w matches on an alphanumeric character
> or an underscore. When you switch to Unicode mode (using (?u) at the
> beginning of your regex), this should continue to just match alphanumerics,
> just including characters like å or ø or ü or whatever else Unicode
> designates as alphanumeric characters.
>
> But when you do this, it also matches curly quotes (“ ” and ‘ ’). Did not
> know that, and my tentative conclusion is that it's a bug in Python. (And if
> I'm wrong about that, please tell me.)
>

Well for me Python 2.7.12 \w does not match u201c or u201d which are
the relevant characters AFAIK.  Are you sure the string is Unicode?
Python 2 strings are not unicode b default and IIRC ASciidoc is not
consistent in its Unicode usage.

> This hasn't solved the second problem, though, which is why email addresses
> aren't appearing within tables.
>

I presume the cell has style a?

Cheers
Lex

> You can see an example of the problem here, with all the associated files
> linked and a tarball with all the files. Feel free to tell me what the heck
> I'm doing wrong.
>
> http://mcglk.org/minimal-example/example.html
>
> --
> You received this message because you are subscribed to the Google Groups
> "asciidoc" 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/asciidoc.
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"asciidoc" 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/asciidoc.
For more options, visit https://groups.google.com/d/optout.

Reply via email to