Repository navigation
/docs/changelog/0.3.0/の翻訳
#441
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -1,77 +1,61 @@ | ||||||
| --- | ||||||
| title: 0.3.0 | ||||||
| description: Changes in Typst 0.3.0 | ||||||
| description: Typst 0.3.0の変更点 | ||||||
| --- | ||||||
|
|
||||||
| # Version 0.3.0 (April 26, 2023) | ||||||
|
|
||||||
| ## Breaking changes | ||||||
| - Renamed a few symbols: What was previous `dot.op` is now just `dot` and the | ||||||
| basic dot is `dot.basic`. The same applies to `ast` and `tilde`. | ||||||
| - Renamed `mod` to [`rem`]($calc.rem) to more accurately reflect the behavior. | ||||||
| It will remain available as `mod` until the next update as a grace period. | ||||||
| - A lone underscore is not a valid identifier anymore, it can now only be used | ||||||
| in patterns | ||||||
| - Removed `before` and `after` arguments from [`query`]($query). This is now handled | ||||||
| through flexible [selectors]($selector) combinator methods | ||||||
| - Added support for [attachments]($math.attach) (sub-, superscripts) that | ||||||
| precede the base symbol. The `top` and `bottom` arguments have been renamed to | ||||||
| `t` and `b`. | ||||||
|
|
||||||
| ## New features | ||||||
| - Added support for more complex [strokes]($stroke) (configurable caps, joins, | ||||||
| and dash patterns) | ||||||
| - Added [`cancel`]($math.cancel) function for equations | ||||||
| - Added support for [destructuring]($scripting/#bindings) in argument lists and | ||||||
| assignments | ||||||
| - Added [`alt`]($image.alt) text argument to image function | ||||||
| - Added [`toml`]($toml) function for loading data from a TOML file | ||||||
| - Added [`zip`]($array.zip), [`sum`]($array.sum), and | ||||||
| [`product`]($array.product) methods for arrays | ||||||
| - Added `fact`, `perm`, `binom`, `gcd`, `lcm`, `atan2`, `quo`, `trunc`, and | ||||||
| `fract` [calculation]($category/foundations/calc) functions | ||||||
|
|
||||||
| ## Improvements | ||||||
| - Text in SVGs now displays properly | ||||||
| - Typst now generates a PDF heading outline | ||||||
| - [References]($ref) now provides the referenced element as a field in show | ||||||
| rules | ||||||
| - Refined linebreak algorithm for better Chinese justification | ||||||
| - Locations are now a valid kind of selector | ||||||
| - Added a few symbols for algebra | ||||||
| - Added Spanish smart quote support | ||||||
| - Added [`selector`]($selector) function to turn a selector-like value into a selector on | ||||||
| which combinator methods can be called | ||||||
| - Improved some error messages | ||||||
| - The outline and bibliography headings can now be styled with show-set rules | ||||||
| - Operations on numbers now produce an error instead of overflowing | ||||||
|
|
||||||
| ## Bug fixes | ||||||
| - Fixed wrong linebreak before punctuation that follows inline equations, | ||||||
| citations, and other elements | ||||||
| - Fixed a bug with [argument sinks]($arguments) | ||||||
| - Fixed strokes with thickness zero | ||||||
| - Fixed hiding and show rules in math | ||||||
| - Fixed alignment in matrices | ||||||
| - Fixed some alignment bugs in equations | ||||||
| - Fixed grid cell alignment | ||||||
| - Fixed alignment of list marker and enum markers in presence of global | ||||||
| alignment settings | ||||||
| - Fixed [path]($path) closing | ||||||
| - Fixed compiler crash with figure references | ||||||
| - A single trailing line breaks is now ignored in math, just like in text | ||||||
|
|
||||||
| ## Command line interface | ||||||
| - Font path and compilation root can now be set with the environment variables | ||||||
| `TYPST_FONT_PATHS` and `TYPST_ROOT` | ||||||
| - The output of `typst fonts` now includes the embedded fonts | ||||||
|
|
||||||
| ## Development | ||||||
| - Added instrumentation for debugging and optimization | ||||||
| - Added `--update` flag and `UPDATE_EXPECT` environment variable to update | ||||||
| reference images for tests | ||||||
| - You can now run a specific subtest with `--subtest` | ||||||
| - Tests now run on multiple threads | ||||||
|
|
||||||
| ## Contributors | ||||||
| # バージョン0.3.0(2023年4月26日) | ||||||
|
|
||||||
| ## 破壊的変更 | ||||||
| - いくつかの記号の名前を変更しました。以前の`dot.op`は単に`dot`に、基本のドットは`dot.basic`になりました。`ast`と`tilde`も同様です。 | ||||||
| - 動作をより正確に反映するため、`mod`の名前を[`rem`]($calc.rem)に変更しました。猶予期間として、次の更新までは`mod`として引き続き利用できます。 | ||||||
| - 単独のアンダースコアは有効な識別子ではなくなり、パターン内でのみ使用できるようになりました。 | ||||||
| - [`query`]($query)から`before`と`after`引数を削除しました。代わりに、柔軟な[セレクター]($selector)のコンビネーターメソッドを使用します。 | ||||||
| - ベースとなる記号の前に置かれる[アタッチメント]($math.attach)(下付き文字、上付き文字)に対応しました。`top`と`bottom`引数の名前を`t`と`b`に変更しました。 | ||||||
|
|
||||||
| ## 新機能 | ||||||
| - より複雑な[ストローク]($stroke)(キャップ、接合、破線パターンを設定可能)に対応しました。 | ||||||
| - 数式用の[`cancel`]($math.cancel)関数を追加しました。 | ||||||
| - 引数リストと代入で[分割]($scripting/#bindings)ができるようになりました。 | ||||||
| - image関数に代替テキストの[`alt`]($image.alt)引数を追加しました。 | ||||||
| - TOMLファイルからデータを読み込むための[`toml`]($toml)関数を追加しました。 | ||||||
| - 配列用の[`zip`]($array.zip)、[`sum`]($array.sum)、[`product`]($array.product)メソッドを追加しました。 | ||||||
| - `fact`、`perm`、`binom`、`gcd`、`lcm`、`atan2`、`quo`、`trunc`、`fract`の[計算]($category/foundations/calc)関数を追加しました。 | ||||||
|
|
||||||
| ## 改善 | ||||||
| - SVG内のテキストが正しく表示されるようになりました。 | ||||||
| - TypstがPDFの見出しアウトラインを生成するようになりました。 | ||||||
| - [参照]($ref)がshowルールで参照先の要素をフィールドとして提供するようになりました。 | ||||||
| - 中国語の均等割り付けを改善するため、改行アルゴリズムを改良しました。 | ||||||
| - ロケーションが有効なセレクターの一種になりました。 | ||||||
| - 代数用の記号をいくつか追加しました。 | ||||||
| - スペイン語のスマートクォートに対応しました。 | ||||||
| - セレクターのような値をセレクターに変換する[`selector`]($selector)関数を追加しました。変換後のセレクターでは、コンビネーターメソッドを呼び出せます。 | ||||||
| - 一部のエラーメッセージを改善しました。 | ||||||
| - アウトラインと参考文献の見出しをshow-setルールでスタイル設定できるようになりました。 | ||||||
| - 数値に対する演算が、オーバーフローする代わりにエラーを出すようになりました。 | ||||||
|
|
||||||
| ## バグ修正 | ||||||
| - インライン数式や引用、その他の要素に続く句読点の前で誤って改行される問題を修正しました。 | ||||||
| - [引数シンク]($arguments)のバグを修正しました。 | ||||||
| - 太さがゼロのストロークの問題を修正しました。 | ||||||
| - 数式における非表示とshowルールの処理を修正しました。 | ||||||
| - 行列の配置を修正しました。 | ||||||
| - 数式の配置に関するいくつかのバグを修正しました。 | ||||||
| - グリッドのセルの配置を修正しました。 | ||||||
| - グローバルな配置設定がある場合に、箇条書きリストと番号付きリストのマーカーの配置を修正しました。 | ||||||
| - [パス]($path)を閉じる処理を修正しました。 | ||||||
| - 図表の参照時に発生するコンパイラーのクラッシュを修正しました。 | ||||||
| - 文章と同様、数式でも末尾の単一の改行が無視されるようになりました。 | ||||||
|
|
||||||
| ## コマンドラインインターフェース | ||||||
| - フォントパスとコンパイルルートは、環境変数`TYPST_FONT_PATHS`と`TYPST_ROOT`で設定できるようになりました。 | ||||||
| - `typst fonts`の出力に埋め込みフォントが含まれるようになりました。 | ||||||
|
|
||||||
| ## 開発 | ||||||
| - デバッグと最適化のためのインストルメンテーションを追加しました。 | ||||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. あまり自信はありませんが、個人的には「インストルメンテーション」という言葉に馴染みがないので、それっぽい日本語を当ててあげたほうが親切かもしれません。
Suggested change
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. instrumentationは「観測用のプローブをコードに仕込むこと」を指します。この変更の実体はコンパイラー内部への計測ポイントの埋め込みなので、「インストルメンテーション」は意味として正確です。「計装」と訳されることもあります。「計測機能」に関してですが、「計測」だけだと、-vによるデバッグ用のログ出力の側面が抜け、「機能」が付くとユーザー向けの新機能のように見える可能性があります。実際には「開発」セクションの項目で、主な対象はTypstの開発者です。ただ、読者は開発者だけではないというのもわかります。折衷案としては例えば「デバッグと最適化のための計装(トレーシング)を追加しました。」のような感じでどうでしょうか。 |
||||||
| - テストの参照画像を更新するための`--update`フラグと`UPDATE_EXPECT`環境変数を追加しました。 | ||||||
| - `--subtest`で特定のサブテストを実行できるようになりました。 | ||||||
| - テストが複数のスレッドで実行されるようになりました。 | ||||||
|
|
||||||
| ## 貢献者 | ||||||
| <contributors from="v0.2.0" to="v0.3.0" /> | ||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ここの "PDF heading outline" は PDF ビューアーのしおりを指していると思います。同じセクションの下から2番目にある「アウトライン」とは意味が異なるため、言葉を変えておいたほうがよいと思いました。