The main program to convert from any code to any other code is iconv, please 
type:
 $ iconv —list
in order to realize the number of codes that our world produces before UNICODE.
 $ iconv -f ISO-8859-1 -t UTF-8 essai-iso8859-1.tex > essai-utf-8.tex
will transform from former ISO-8859-1 to Unicode (utf-8).
 $ iconv -f CP850 -t UTF-8 essai2-CP850.tex > essai2-utf-8.tex
 will transform from Windows CP850 to Unicode.

After the move from 7bit character or ASCII, to 8 bit (allowing 128 new 
characters) there was not enough space, even for all Western roman characters 
and iso8859-1, iso8859-2 etc. did appear in the early 80’s. At that time, 
scientific publishers were publishing in non English reviews and the TeX 
meeting in Cork was the premises for adopting multiple characters for a single 
sign: unicode.

Unicode has been adopted by Linux, Windows and Apple since about 2001! All the 
internal text files of the Operating System are coded in Unicode. But the 
habits of users let former codes survive. And some people are still using cp850 
or iso-8859-1 for their text files.

But your question concerns probably the transformation of the family of TeX 
backslash accented characters, \’e or {\’e} to é. Such software (tex7a8 for 7 
bit/ASCII to 8bit) was distributed by the French TeX association GUtenberg in 
the early 90’s on diskettes! 

I am using my own emacs lisp macro and still use it for old tex files. Here is 
some excerpts from my 1992 macro file named tex7a8.el (the octal character \300 
for acute A has to be entered) 
(defun tex-pc850-ascii () 
 "Fonction pour convertir un fichier TeX 8 bits PC850 en codes 7 bits ASCII." 
 (interactive)
 (setq case-fold-search nil) 
 (beginning-of-buffer) 
 (while (not (eobp)) (end-of-line) ;
 (delete-horizontal-space) (if (not (eobp)) (next-line 1)))

(beginning-of-buffer) (replace-string "% TEX 8(pc850)" "% TEX 7(ascii)” )
  (beginning-of-buffer) (replace-string “\300" "\\`A” )
.. ..
);(global-set-key "\C-z7" 'tex-88591-ascii)


Under emacs, you can easily transform a buffer 'essai-8859-1.tex' encoded 
iso-8859-1 in Unicode by typing prefixing the ctrl_x ctrl_w  (for writing a 
buffer to a file) by ctrl_x return c. You are then invited to choose your 
output encoding. utf-8-unix, for example, differs from utf-8-dos by the fact 
that each line which under unix ends with a LF (linefeed) will end with two 
characters, Carriage Return (^M) and Line Feed (^J) as required by Windows. 
Usually the command unixtodos does the conversion. Thus for me, to transform a 
LaTeX text from Ascii to Unicode under Emacs, I first transform it in whatever 
8bit and then use emacs-iconv.

I know that publishers are reluctant to offer both pdflatex and xelatex. But 
most of time, you can submit your text encoded in Unicode, for European 
languages only.

Regards,

Nicolas

> Le 2 sept. 2015 à 03:10, EBo <e...@users.sourceforge.net> a écrit :
> 
> sorry for the garbled thread.  My reply got eaten by the server.
> 
> Nicolas,
> 
> Thank you for that very informative reply.  Do you know of any tools 
> which will help convert back and forth to unicode?  While I would love 
> to use it for quoting original text, some of the people I work with do 
> not use xelatex by default and have restrictions on what macros and 
> packages they allow -- namely publishers.
> 
>    Thanks and best regards,
> 
>    EBo --
> 
> 
> ------------------------------------------------------------------------------
> Monitor Your Dynamic Infrastructure at Any Scale With Datadog!
> Get real-time metrics from all of your servers, apps and tools
> in one place.
> SourceForge users - Click here to start your Free Trial of Datadog now!
> http://pubads.g.doubleclick.net/gampad/clk?id=241902991&iu=/4140
> _______________________________________________
> Jabref-users mailing list
> Jabref-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/jabref-users

------------------------------------------------------------------------------
Monitor Your Dynamic Infrastructure at Any Scale With Datadog!
Get real-time metrics from all of your servers, apps and tools
in one place.
SourceForge users - Click here to start your Free Trial of Datadog now!
http://pubads.g.doubleclick.net/gampad/clk?id=241902991&iu=/4140
_______________________________________________
Jabref-users mailing list
Jabref-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jabref-users

Reply via email to