Admittedly, I have not written Ruff with non-English character sets in
mind. However, in theory it should work.
There are two places encoding could break. On input, when the source
file is read, and on output, when the file encoding is wrong.
On output, Ruff sets the file encoding to utf-8 (I can't recall if it
sets the character encoding charset within the html itself but it should
not be needed since it should be defaulted to utf-8 anyway)
On input Ruff does not read files. It uses [info body] to get the
comments within a proc. If you have stored the source for your package
in some encoding, you have to make sure the that the "source" command's -encoding option is specified as that same encoding (unless both use the current system encoding) when you load your package (not ruff).
That would be the first place to check - what encoding is the source
file stored in and is it being read in (with the source command) with
the same encoding?
/Ashok
On 8/10/2022 1:21 PM, Alan Lee wrote:
Hi
How to build html with transitional chinese?
Is it miss any build option for ruff?
proc ruff::formatters {} {
# Gets the available output formatters. (Test 測試)
#
# The returned values can be passed to [document] to generate
# documentation in that format.
#
# Returns a list of available formatters.
return {html markdown nroff}
}
=================== HTML OUTPUT===================
formatters [::ruff]ruff, Top
Gets the available output formatters. (Test 皜祈岫)
formatters
Description
The returned values can be passed to document to generate documentation in that format.
Return value
Returns a list of available formatters
--- SoupGate-Win32 v1.05
* Origin: fsxNet Usenet Gateway (21:1/5)