[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Installing many languages of docs
å²¡ï¼ å¥ˆè‰¯å…ˆç«¯å¤§ã§ã™ã€‚
At Mon, 27 Sep 1999 16:25:13 +0900,
Shuichi OONO <jr5pdx@debian.or.jp> wrote:
>
> # debian-doc@lists.debian.org ã‹ã‚‰å‹æ‰‹ã«å¼•ã£ã±ã£ã¦æ¥ã¾ã—ãŸâ€¦ã€‚
>
> debconf ã® configuration data ã®ç¿»è¨³ã‚’全部 install ã™ã‚‹ã®ã¯
> ã•ã™ãŒã«åŠ¹çŽ‡ãŒæ‚ªã„ã‚“ã˜ã‚ƒãªã„ã‹ã€ã¨ã„ã†è©±ãªã‚“ã§ã™ãŒã€
>
> At 25 Sep 1999 22:28:15 -0400,
> Adam Di Carlo <adam@xxxxxxxxxxx> wrote:
> >
> > Post-installation removal of certain documentation based on language
> > must be based either on known conventions of file name, in some cases,
> > and in other cases, a metadata system which identifies the language of
> > documents.
> >
> > The metadata system we have now in doc-base isn't rich enough for
> > this, unfortunately, but there is a plan for beefing this up, which
> > however has been in my lap for over a year now and I haven't made
> > great progress. Again, I hope to pick this up right after potato
> > release.
> >
> > As for postinstallation removal, that also requires that the "hooks"
> > mechanism of dpkg be added. Not sure what the prospects of this ever
> > happening are. Nightly cron jobs might be an okay comprimise.
>
> ä¸è¦ãªç‰©ã¯ postinst ã¨ã‹ã§æ¶ˆã—ã¡ã‚ƒãˆã¨ã„ã†ã€ã¡ã‚‡ã£ã¨ä¹±æš´ãª(?)
> æ„見ãŒå‡ºã¦ã„ã¾ã™ã€‚(鵜飼ã•ã‚“ãŒæ–‡å¥è¨€ã£ã¦ã¾ã—㟠^^;)
# hookã¨ã‹postinstãªã‚“ã¦æœ€ä½Žã 〜
> 以å‰ã€ç¿»è¨³ç‰©ã‚’別パッケージã«ã—㦠apt ã¨ã‹ã« handle ã•ã›ã‚‹ã¨ã„ã†
> æ案ãŒå²¡ã•ã‚“(?)ã‚ãŸã‚Šã‹ã‚‰ã‚ã£ãŸã‚ˆã†ã«è¨˜æ†¶ã—ã¦ã„ã‚‹ã®ã§ã™ãŒã€
> メリットやデメリットã€æ–¹æ³•è«–ã‚„å•é¡Œç‚¹ã‚’ã¯ã£ãり覚ãˆã¦ã„ã¾ã›ã‚“。
言ã„出ã—ãŸã¯ã„ã„ã‘ã©ã€å¿™ã—ããªã£ã¦æ’ƒæ²ˆã—ã¾ã—ãŸã€‚ã”ã‚ã‚“ãªã•ã„。
# 実質ã€å¤ä¼‘ã¿ã¯1æ—¥ã ã£ãŸã€‚
分離ã™ã‚‹ãƒ¡ãƒªãƒƒãƒˆã¯ä¸»ã«ã€ç¿»è¨³è€…ã®è² 担を減らã™ç‚¹ã«ã‚ã‚Šã¾ã™ã€‚ãƒ
イナリパッケージãŒãƒ“ルドã•ã‚ŒãŸå¾Œã‹ã‚‰ç¿»è¨³ä½œæ¥ã«ã‹ã‹ã‚Œã¦ã€ãƒ‘ッ
ケージをリビルドã™ã‚‹ã“ã¨ãªã翻訳物をæä¾›ã§ãã‚‹ã‹ã‚‰ã§ã™ã€‚
方法論
------
(ソースã¾ãŸã¯ãƒã‚¤ãƒŠãƒª)パッケージã‹ã‚‰å–り出ã—ãŸåŽŸæ–‡ã‚’gettext
ã®ã‚ˆã†ãªãƒ„ールã§å‡¦ç†ã—ã¦ç¿»è¨³è€…ã«æ§ã’る。md5sumã¨ã‹ã§æ–‡å—列å˜
ä½ã®é•ã„を自動管ç†ã™ã‚‹ã“ã¨ã§ã€ãƒãƒ¼ã‚¸ãƒ§ãƒ³ãŒé•ã£ã¦ã‚‚翻訳ã®å¿…è¦
性ãŒç„¡ã„å ´åˆã«ã€ç¿»è¨³è€…ã®è² æ‹…ã‚’ã‹ãªã‚Šè»½æ¸›ã§ãる。翻訳物ã¯PGP
付ãã§ã‚¢ãƒƒãƒ—ãƒãƒ¼ãƒ‰ã•ã‚Œã‚‹ã€‚パッケージã®å½¢æ…‹ã¯ä¸æ˜Žã€‚
ã“ã“ã¾ã§ã¯ã„ã„ã‚“ã§ã™ãŒã€ãƒ¦ãƒ¼ã‚¶ã®ã‚·ã‚¹ãƒ†ãƒ ã¸ã®ã‚¤ãƒ³ã‚¹ãƒˆãƒ¼ãƒ«ã‚’ãã£
ã¡ã‚Šã‚„ã‚‹ãŸã‚ã«ã€ã‚·ã‚¹ãƒ†ãƒ レベルã§ä½¿ç”¨ã™ã‚‹è¨€èªžã‚’指定ã—ã¦ãŠãã¨
ã„ã†ã“ã¨ã‚’考ãˆã¾ã—ãŸã€‚ä¸è¦ãªè¨€èªžã®ç¿»è¨³ãƒ•ã‚¡ã‚¤ãƒ«ã¯ã‚¤ãƒ³ã‚¹ãƒˆãƒ¼ãƒ«
ã•ã‚Œãªã„よã†ã«ã™ã‚‹ãŸã‚ã§ã™ã€‚
# ã‚‚ã£ã¨ãã£ã¡ã‚Šã‚„ã‚‹ãªã‚‰ã€ä½¿ç”¨è¨€èªžã®è¨å®šå¤‰æ›´ã‚’åæ˜ ã™ã‚‹ãŸã‚
ã®ã‚¤ãƒ™ãƒ³ãƒˆã‚·ã‚¹ãƒ†ãƒ ãŒæ¬²ã—ã„。ã“ã‚Œã¯ã€æ©Ÿä¼šãŒã‚る時ã«æ›´æ–°ã§
ãるよã†ã«è¦šãˆã¦ãŠãã¨ã„ã†ã‚‚ã®ã€‚
å•é¡Œç‚¹
------
ã„ã‹ã«å°‘ãªã„労力ã¨å¤‰æ›´ã§ã“ã®ãƒ¢ãƒ‡ãƒ«ã«ç§»è¡Œã§ãã‚‹ã‹ã¨ã„ã†ç‚¹ã§ã™ã€‚
翻訳物ã¨ã¯ã€Descriptionã‚„debconfã®æ–‡æ›¸ã§ã™ãŒã€ãã†ã™ã‚‹ã¨
dpkg(Descriptionã¾ã‚ã‚Šã®å‡¦ç†)ã‚„apt(翻訳物é…é€ã‚·ã‚¹ãƒ†ãƒ ã¨ã—ã¦)
ã«å¤‰æ›´ãŒå¿…è¦ã«ãªã‚‹ã—ã€æ–°ãŸãªãƒ‘ッケージモデルãŒå¿…è¦ã«ãªã‚‹ã‹ã‚‚
ã—ã‚Œãªã„ã—ã€ç¿»è¨³ãƒ„ールも必è¦ã§ã™ã€‚
ãã®ä»–
------
最近ã¡ã‚‡ã£ã¨æ›¸ããŸã‹ã£ãŸäº‹ãŒã‚ã‚‹ã®ã§ã€ã“ã®æ©Ÿä¼šã«æ›¸ã„ã¦ã¿ã¾ã™ã€‚
ã‹ãã“ã•ã‚“ã‚ãŸã‚Šã®æ–¹ã€…ãŒã›ã£ã‹ãDescriptionã®ç¿»è¨³ã‚’ã•ã‚Œã¦ã„
ã‚‹ã®ã«ã€ä»Šã®æ‰€æ´»ç”¨ã•ã‚Œã¦ã„ã¾ã›ã‚“。ãã®ã†ã¡å¤ããªã£ã¦ã—ã¾ã†ã¨
ã¾ãŸç¿»è¨³ã™ã‚‹å¿…è¦ã®å‡ºã¦ãã‚‹ã§ã—ょã†ã€‚
一方ã§ã€Debianを使ã£ã¦ã¿ãŸäººã®æ„Ÿæƒ³ã‚’èžã„ã¦ã„ã‚‹ã¨ã€ãƒ‘ッケージ
ãŒå¤šã™ãŽã¦ä½•ãŒä½•ã ã‹åˆ†ã‹ã‚‰ã‚“ã¨ã„ã†å°è±¡ãŒã‚ã‚Šã¾ã™ã€‚ãã“ã§ã€‚æ–¹
å‘性ã“ããšã‚Œã¦ã„ã‚‹ã‹ã‚‚ã—ã‚Œã¾ã›ã‚“ãŒã€ä»Šã™ãDescriptionã®ç¿»è¨³
物を活用ã™ã‚‹äº‹ã‚‚悪ãã¯ãªã„ã¨æ€ã„ã¾ã™ã€‚例ãˆã°ãƒ‘ッケージã«ã—ã¦
ã—ã¾ã£ã¦å‚ç…§ã—ã¦ã‚‚らã†ã¨ã‹ã€Webã«ç½®ã„ã¦ãŠãã ã‘ã€ã§ã‚‚ã„ã„ã‹
ã‚‚ã—ã‚Œã¾ã›ã‚“。çµæ§‹åŠ¹æžœçš„ã ã¨æ€ã„ã¾ã™ã€‚
# ã‚ã–ã¨description-ja(â†*ja*ãŒé‡è¦)ãªãƒ‘ッケージを作ã£ã¦ITP
ã—ã¦ã€ç¿»è¨³ç‰©ã®ç®¡ç†ãƒ»è¡¨ç¤ºæ©Ÿæ§‹ã®å¿…è¦æ€§ã‚’訴ãˆã¦ã€ã‚ã£ã¡ã®äºº
é”を刺激ã™ã‚‹ã®ã‚‚作戦(?!)
ã“ã‚“ãªæ‰€ã§ã™ã€‚
--
岡 充 (Mitsuru Oka)
奈良先端科å¦æŠ€è¡“大å¦é™¢å¤§å¦