Hello,
I have now finished the change I suggested, but with a minor change.
The user will not be setting the earlier suggested #+language: zh
keyword.
ox-hugo will try to get the locale of the user from some default environment variables (see https://ox-hugo.scripter.co/doc/cjk-support/).
If that does not work automatically, user can explicitly specify the locale to be Chinese by adding #+hugo_locale: zh
keyword or :EXPORT_HUGO_LOCALE: zh
property to a subtree’s property drawer. (Any local string that begins with “zh” will work, like “zh_CH”).
Example:
#+hugo_base_dir: .
#+hugo_locale: zh_CH
* Filling automatically not preserved for Chinese characters (preserve filling on)
:PROPERTIES:
:EXPORT_FILE_NAME: filling-not-preserved-for-chinese-characters--preserve-filling-on
:EXPORT_HUGO_PRESERVE_FILLING: t
:END:
#+begin_description
Ensure that multi-byte characters are force-unwrapped if the locale is
manually set or auto-detected as Chinese.
#+end_description
abc
def
ghi
这是一个测试
文本