help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: utf8 does not appear to work for function documentation strings gene


From: Alan W. Irwin
Subject: Re: utf8 does not appear to work for function documentation strings generated with texinfo
Date: Wed, 26 Mar 2014 09:32:11 -0700 (PDT)
User-agent: Alpine 2.02 (DEB 1266 2009-07-14)

On 2014-03-26 03:03-0700 CdeMills wrote:

Using utf-8 with TeX requires to specify explicitelly the coding.

With TexInfo, you need to add

@documentencoding UTF-8

Thanks for your reply to my question.  However, as I stated in my OP,
I had tried some experiments with @documentencoding UTF-8, but could
not get it to work.  To be specific, here is one example that does not
work here with ocatve-3.6.2.

__________________
## -*- texinfo -*-
## @deftypefn  {Function File} address@hidden =} fn (@var{x}, …)
## @documentencoding UTF-8
## The unicode character, ≥, is output
## @end deftypefn

function test_utf8
printf("The unicode character, ≥, is output\n")
endfunction
__________________

It yields the following truncated help results:

octave:1> test_utf8
The unicode character, ≥, is output
octave:2> help test_utf8
test_utf8' is a function from the file
/home/irwin/test_octave/test_utf8.m

 -- Function File: A = fn (X,
     The unicode character,
                           ^^^
Additional help for built-in functions and operators is
[....]

I also tried the experiment of putting the ## @documentencoding UTF-8
just after the texinfo line, but I still get the truncated help result.

Do you get untruncated help results with this simple example there for
your version of octave or is there some problem with how this simple
example is implemented?

Alan
__________________________
Alan W. Irwin

Astronomical research affiliation with Department of Physics and Astronomy,
University of Victoria (astrowww.phys.uvic.ca).

Programming affiliations with the FreeEOS equation-of-state
implementation for stellar interiors (freeeos.sf.net); the Time
Ephemerides project (timeephem.sf.net); PLplot scientific plotting
software package (plplot.sf.net); the libLASi project
(unifont.org/lasi); the Loads of Linux Links project (loll.sf.net);
and the Linux Brochure Project (lbproject.sf.net).
__________________________

Linux-powered Science
__________________________



reply via email to

[Prev in Thread] Current Thread [Next in Thread]