このページは2007年 12月 6日, 07:01に更新されました by RickCogley

Dekiwiki NG in Japanese

From $1

What is NG, no good, or doesn't work, in the Japanese language.

日本語でNGな部分。

Lucene Search of Attachments 添付の検索 (Resolved for PDF, DOC, XLS, PPT)

Lucene in Deki Wiki is set up to index attachments by converting them to text using "filters". The filters are installed as packages, and then somehow copied to /var/www/deki-hayes/bin/filters, where they are referenced by the startup xml file /var/www/deki-hayes/config/mindtouch.deki.startup.xml.

However, while Lucene search is working in Japanese for wiki pages (after cursory testing), it is not working for attachments. From reading some pages on the internet, it seems that these filter utilities have to be set to work in Japanese.

See the forum post as well:
http://forums.opengarden.org/showthr...=6454#post6454 

Resolved

This problem is resolved for PDF, DOC, XLS, PPT, confirmed on Ubuntu 7.11. 

PDF Export

PDF export does not work, and produces all entities and garbage.

If printing via the OS, printing directly via the print dialog, or, via the page directly (and therefore using print.css if it exists) is not so desireable and could be improved.  

Problem with Date Formatting 日付の表示方式

The basic date formatting is "western" style, so that when translated, the resulting dates look like "15 11月 2007" which is not good in the Japanese language and standard. In Japan, the usual way of formatting dates would be YYYY MM DD. One way of handling this would be to allow some kind of setting to be made to fix the problem, but, in the long run it would be better to fundamentally fix the problem, by following W3C-DTF formats to make things clear and simple.  

現在日付の表記方法が欧米方式の、DD MM YYYYになっているが、単純に訳してしまうと、「15 11月 2007」のようになってしまい、日本で利用する際には大きな問題がある。(日本ではYYYY MM DDが一般的)初期設定等で変更できるような仕組みを持つことが望ましいが、本来であれば日付の表記方法はW3C-DTFフォーマットに従い統一表記とするのが一番シンプルかつ明瞭であると思われる。

 

 W3C-DTF formatted dates - 6 types
W3C-DTFフォーマットで勧告されている6種類の日付表記方法
  1. Year Only
    YYYY
    (e.g: 2001
  2. Year and Date
    YYYY
    -MM(e.g: 2001-08
  3. Year, Month, Day
    YYYY
    -MM-DD(e.g: 2001-08-02
  4. Year, Month, Day, Time
    YYYY
    -MM-DDThh:mmTZD(e.g: 2001-08-02T10:45+09:00
  5. Year, Month, Day, Time with Seconds
    YYYY
    -MM-DDThh:mm:ssTZD(e.g: 2001-08-02T10:45:23+09:00
  6. Year, Month, Day, Time, Seconds with Minutes
    YYYY
    -MM-DDThh:mm:ss.sTZD(e.g: 2001-08-02T10:45:23.5+09:00
  1. 年のみ
    YYYY
    (例:2001
  2. 年月
    YYYY
    -MM(例:2001-08
  3. 年月日
    YYYY
    -MM-DD(例:2001-08-02
  4. 年月日および時分
    YYYY
    -MM-DDThh:mmTZD(例:2001-08-02T10:45+09:00
  5. 年月日および時分秒
    YYYY
    -MM-DDThh:mm:ssTZD(例:2001-08-02T10:45:23+09:00
  6. 年月日および時分秒および小数部分
    YYYY
    -MM-DDThh:mm:ss.sTZD(例:2001-08-02T10:45:23.5+09:00

 

Reference

Please see the following URL 詳しくはこちら
http://www.w3.org/TR/NOTE-datetime

ファイルサイズ日付添付したユーザ 
 DekiWiki Jp PDF NG - Japanese Entities Example.pdf
Jp language becomes entities on export
4.58 kB2007年 11月 12日, 02:42RickCogleyアクション
コメント(10)
全10件のうち10件のコメントを表示: 全て見る
もし、フォントの問題であるのなら、IPAで再配布可能で
エンベットも可能な日本語フォントが配布されています。
http://ossipedia.ipa.go.jp/ipafont/
投稿日:2007年 11月 11日, 00:50 ()
どうも問題は日本語がHTML Entitiesになること。添付をします。
投稿日:2007年 11月 12日, 02:41 ()
UTF-8でURLエンコードされてしまうようですね。
どこもオープンソースのWebアプリケーションではPDFの日本語化が難航しているようです。
それだけに是非DekiWikiでは実現したいですね。
私も調べてみます。
投稿日:2007年 11月 12日, 03:24 ()
お役に立てるか分かりませんがHTMLからPDF変換を行うもの

TCPDF
UTF8に標準で対応しているので仕組みの参考にはなるかもしれません。
http://www.tecnick.com/public/code/cp_dpage.php?aiocp_dp=tcpdf 2007年 11月 12日, 03:41に編集
投稿日:2007年 11月 12日, 03:41 ()
Thanks for the comments, Mio san.

To the Mindtouch team: Mio points out and I concur that it looks like you're having problems that other Open Source apps have, with export to PDF for Japanese.

Mio san mentions an URL that might be of some help:

http://www.tecnick.com/public/code/cp_dpage.php?aiocp_dp=tcpdf
投稿日:2007年 11月 13日, 12:57 ()
The two tools we use for PDF generation are: HTML2PS and PS2PDF. I believe both these tools support Unicode output, but may require files (like font packs) or some minor configuration. 2007年 11月 15日, 01:46に編集
投稿日:2007年 11月 15日, 01:45 ()
Thanks RoyK.
投稿日:2007年 11月 15日, 05:38 ()
日付の表記方法について現在は欧米方式(DD MM YYYY)であるため、日本でそのまま使用する際には少々問題があるようです。日本で一般的なYYYY MM DDに変更することは可能なのでしょうか?
投稿日:2007年 11月 17日, 13:40 ()
Hello Mindtouch: Mio pointed out in Japanese some problems with date formatting in the Japanese translation. Please see her comments above (mistakes in the J-E translation of her comments are mine, if any.)
投稿日:2007年 11月 19日, 12:40 ()
キーワード検索した後のハイライト表示機能で、日本語の検索ワードだと、ハイライトしなないようです。
投稿日:2007年 11月 21日, 04:29 ()
全10件のうち10件のコメントを表示: 全て見る
あなたはコメントを投稿するには ログイン しなければなりません。