bugGNU TeXmacs - Bugs: bug #62396, Curved apostrophe (U+2019) in...


You are not allowed to post comments on this tracker with your current authentication level.

bug #62396: Curved apostrophe (U+2019) in Bibtex converted to straight apostrophe (U+0027)

Submitter:  Jeroen Wouters <jeronim>
Submitted:  Mon 02 May 2022 09:38:28 PM UTC
Category:  Conversion Priority:  5 - Normal
Item Group:  Error Status:  Need Info
Privacy:  Public Assigned to:  vdhoeven
Originator Name:  Open/Closed:  Open
Release:  None Release:  2.1.1
Fixed Release:  None Fixed Release: 

Mon 10 Oct 2022 09:25:52 PM UTC, comment #1: 

These quotes are a continuing pain.

The problem is that single quotes sometimes really have to be imported as ` and ' if my memory is correct.  Typically in computer code where the code may become semantically incorrect when not converted appropriately.

For the moment, I just modified the conversions of \lq and \rq.
We could add a hack to force actual UTF-8 quotes to be imported correctly within the LaTeX->TeXmacs converter.

However, I am not sure whether ' from LaTeX should officially be imported as a right quote.  I don't think so, in fact.  I guess that certain language settings might make this happen, but I doubt that this is the default behaviour.

I guess that most existing BibTeX files will use ' and not the UTF-8 right quote <#2019>.  So it is not clear to me how we should deal with this issue.  Maybe a hack that would be specific to BibTeX?

Joris van der Hoeven <vdhoeven>
Group administrator
Mon 02 May 2022 09:38:28 PM UTC, original submission:  

It has been reported in the forum that curved apostrophes in a bibtex file are converted into straight apostrophes:


This seems to happen in `utf8_to_cork`, which loads `TeXmacs/langs/encoding/unicode-cork-oneway.scm`, where line 12 converts "#2019" into "'".

Jeroen Wouters <jeronim>
Group Member


(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by vdhoeven (Posted a comment)
  • -email is unavailable- added by jeronim (Submitted the item)

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.


    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2022-10-10 vdhoeven StatusNone Need Info
        Assigned toNone vdhoeven

    Back to the top

    Powered by Savane 3.13-8484.
    Corresponding source code