Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 5 additions & 8 deletions crates/typst-library/src/layout/hide.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,12 @@ use crate::introspection::Tagged;
/// #hide[Hello] Joe
/// ```
///
/// # Redaction
/// This function may also be useful for redacting content as its arguments are
/// neither present visually nor accessible to Assistive Technology. That said,
/// there can be _some_ traces of the hidden content (such as a bookmarked
/// heading in the PDF's Document Outline).
/// # 墨消し

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Adobe AcrobatなどでもRedactionが墨消しと訳されているので問題なさそうです。

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ありがとうございます!

/// この関数は、引数が視覚的に表示されず、支援技術からもアクセスできないため、コンテンツを墨消しする際にも便利かもしれません。
/// ただし、隠したコンテンツの痕跡は*多少*残ることがあります(PDFの目次にブックマークとして表示される見出しなど)。
///
/// Note that, depending on the circumstances, it may be possible for content to
/// be reverse engineered based on its size in the layout. We thus do not
/// recommend using this function to hide highly sensitive information.
/// 状況によっては、レイアウト上のサイズからコンテンツの内容を推測できる可能性がある点に注意してください。
/// そのため、機密性の高い情報を隠す目的でこの関数を使用することはおすすめしません。
#[elem(Tagged)]
pub struct HideElem {
/// 隠したいコンテンツ。
Expand Down
2 changes: 1 addition & 1 deletion website/translation-status.json
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@
"/docs/reference/layout/direction/": "translated",
"/docs/reference/layout/fraction/": "translated",
"/docs/reference/layout/grid/": "translated",
"/docs/reference/layout/hide/": "partially_translated",
"/docs/reference/layout/hide/": "translated",
"/docs/reference/layout/layout/": "translated",
"/docs/reference/layout/length/": "translated",
"/docs/reference/layout/measure/": "translated",
Expand Down
Loading