小笠原です。

> LibreLogoヘルプの翻訳をしていましたがスクリプトがうまく動かない例題にまた遭遇しました。
> https://translations.documentfoundation.org/ja/libo_help/translate/swriter/librelogo.po#unit=33621079
>
> PRINT SUB (“(.)”, “\\\\1\\\\1”, “text”)
> の部分をですが、私の環境LBO4.4.0.1RC1WIN(86)では “tteexxtt” が出力されません。
>
> PRINT SUB (“(.)”, “\\1\\1”, “text”)
> とすれば “tteexxtt” と出力されるようです。
>
> 正規表現は得意ではないのですがこれは例題がまずいのでしょうか。

実際のヘルプをみると:

https://help.libreoffice.org/Writer/LibreLogo_Toolbar#SUB

PRINT SUB (“(.)”, “\\1\\1”, “text”)

となっているので、これはヘルプ(XML)のバックスラッシュをエスケープするために
バックスラッシュを重ねているのではないでしょうか。


では。
-- 
Naruhiko Ogasawara ([email protected])

-- 
Unsubscribe instructions: E-mail to [email protected]
Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette
List archive: http://listarchives.libreoffice.org/ja/discuss/
All messages sent to this list will be publicly archived and cannot be deleted

メールによる返信