Skip to content
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

chinese et al. #291

Open
kongdd opened this issue Mar 10, 2025 · 0 comments
Open

chinese et al. #291

kongdd opened this issue Mar 10, 2025 · 0 comments

Comments

@kongdd
Copy link

kongdd commented Mar 10, 2025

"et al" in Chinese is "等". In official document, "et al" is not allowed Chinese reference.

<locale xml:lang="zh-CN">
        <date form="text">
            <date-part name="year" suffix="" range-delimiter="&#8212;"/>
            <date-part name="month" form="numeric" suffix="" range-delimiter="&#8212;"/>
            <date-part name="day" suffix="" range-delimiter="&#8212;"/>
        </date>
        <terms>
            <term name="anonymous" form="short">佚名</term>
            <term name="edition" form="short">版</term>
            <term name="open-quote">“</term>
            <term name="close-quote">”</term>
            <term name="open-inner-quote">‘</term>
            <term name="close-inner-quote">’</term>
            <term name="space-et-al">等</term>
        </terms>
    </locale>

csl has the term space-et-al, which supports this function.
However, this term is not allowed in typst.

error: failed to load CSL style (data did not match any variant of untagged enum Term)
   │
83 │   style:"csl/001gb-t-7714-2015-author-date-bilingual.csl")
   │         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Image

This is my case:
References2024.bib:

@article{zhangshenglei_2006_jiyu,
  title = {基于土壤水模型及站点资料的土壤湿度同化方法},
  author = {{张生雷} and {谢正辉} and {田向军} and {师春香} and {陈锋}},
  date = {2006},
  journaltitle = {地球科学进展},
  number = {12},
  pages = {1350--1362},
  issn = {1001-8166},
  langid = {chinese},
  annotation = {CNKICite: 43}
}
#[@zhangshenglei_2006_jiyu]

#v(-2.5em)
#bibliography("References2024.bib", title: "", 
  style:"csl/001gb-t-7714-2015-author-date-bilingual.csl")

This is the csl file:
https://1drv.ms/u/c/e1a801eaec61804c/ESBQ0nxQ0_tBke_F-wyErncBStRBXkPzLI7d9eZ3pAMv_w?e=ZJ29WO

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant