Skip to content

Commit d2bf0ef

Browse files
committed
翻訳完了
1 parent 1e83dbe commit d2bf0ef

File tree

1 file changed

+10
-10
lines changed
  • crates/typst-library/src/loading

1 file changed

+10
-10
lines changed

crates/typst-library/src/loading/read.rs

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@ use crate::foundations::{func, Cast};
77
use crate::loading::Readable;
88
use crate::World;
99

10-
/// Reads plain text or data from a file.
10+
/// ファイルからプレーンテキストやデータを読み込む。
1111
///
12-
/// By default, the file will be read as UTF-8 and returned as a [string]($str).
12+
/// デフォルトでは、ファイルはUTF-8として読み込まれ、[文字列]($str)として返されます。
1313
///
14-
/// If you specify `{encoding: none}`, this returns raw [bytes] instead.
14+
/// `{encoding: none}`を指定した場合、この関数は代わりに生の[bite]を返します。
1515
///
16-
/// # Example
16+
/// #
1717
/// ```example
1818
/// An example for a HTML file: \
1919
/// #let text = read("example.html")
@@ -25,13 +25,13 @@ use crate::World;
2525
#[func]
2626
pub fn read(
2727
engine: &mut Engine,
28-
/// Path to a file.
28+
/// ファイルへのパス。
2929
///
30-
/// For more details, see the [Paths section]($syntax/#paths).
30+
/// 詳細については、[パス セクション]($syntax/#paths)を参照してください。
3131
path: Spanned<EcoString>,
32-
/// The encoding to read the file with.
32+
/// ファイルを読み込む際に使用するエンコーディング。
3333
///
34-
/// If set to `{none}`, this function returns raw bytes.
34+
/// `{none}`に設定すると、この関数は生のバイトを返します。
3535
#[named]
3636
#[default(Some(Encoding::Utf8))]
3737
encoding: Option<Encoding>,
@@ -47,9 +47,9 @@ pub fn read(
4747
})
4848
}
4949

50-
/// An encoding of a file.
50+
/// ファイルのエンコーディング。
5151
#[derive(Debug, Copy, Clone, Eq, PartialEq, Hash, Cast)]
5252
pub enum Encoding {
53-
/// The Unicode UTF-8 encoding.
53+
/// Unicode UTF-8エンコーディング。
5454
Utf8,
5555
}

0 commit comments

Comments
 (0)