Skip to content

Commit

Permalink
Menu: Update Help - Citing
Browse files Browse the repository at this point in the history
  • Loading branch information
BLKSerene committed Oct 16, 2024
1 parent f66a0a2 commit 5e7bad1
Show file tree
Hide file tree
Showing 7 changed files with 117 additions and 43 deletions.
20 changes: 17 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -117,15 +117,29 @@ Email support |[blkserene<i>@</i>gmail<i>.</i>com](mailto:blkserene@gmai

## Citing

If you are going to publish a work that uses Wordless, please cite as follows.
If you are going to publish a work that uses *Wordless*, please cite *Wordless* as a journal article or a piece of computer software.

1. Cite as a journal article

APA (7th edition):
<pre><code>Ye, L. (2024). Wordless: An integrated corpus tool with multilingual support for the study of language, literature, and translation. <i>SoftwareX</i>, <i>28</i>, Article 101931. https://doi.org/10.1016/j.softx.2024.101931</code></pre>

Chicago (18th edition):
<pre><code>Ye, Lei. “Wordless: An Integrated Corpus Tool with Multilingual Support for the Study of Language, Literature, and Translation.” <i>SoftwareX</i> 28 (December 2024): 101931. https://doi.org/10.1016/j.softx.2024.101931.</code></pre>

MLA (9th edition):
<pre><code>Ye Lei. “Wordless: An Integrated Corpus Tool with Multilingual Support for the Study of Language, Literature, and Translation.” <i>SoftwareX</i>, vol. 28, Dec. 2024, https://doi.org/10.1016/j.softx.2024.101931.</code></pre>

2. Cite as a piece of computer software

APA (7th edition):
<pre><code>Ye, L. (2024). <i>Wordless</i> (Version 3.5.0) [Computer software]. Github. https://github.com/BLKSerene/Wordless</code></pre>

MLA (8th edition):
Chicago (18th edition):
<pre><code>Ye, Lei. <i>Wordless</i>. V. 3.5.0. Released July 1, 2024. PC. https://github.com/BLKSerene/Wordless.</code></pre>

<pre><code>Ye Lei. <i>Wordless</i>, version 3.5.0, 2024. <i>Github</i>, https://github.com/BLKSerene/Wordless.</code></pre>
MLA (9th edition):
<pre><code>Ye Lei. <i>Wordless</i>. Version 3.5.0, <i>Github</i>, 1 Jul. 2024, https://github.com/BLKSerene/Wordless.</code></pre>

## Works Using *Wordless*
For details, please click [HERE](/WORKS_USING_WORDLESS.md).
Expand Down
26 changes: 20 additions & 6 deletions doc/trs/zho_cn/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-->

<div align="center"><img src="/doc/wl_logo.png" alt="Wordless:一款拥有多语种支持的语料库集成工具,可用于语言学、文学及翻译研究"></div>
<div align="center"><img src="/doc/wl_logo.png" alt="Wordless:一款具有多语种支持的语料库集成工具,可用于语言学、文学及翻译研究"></div>

<br>

Expand Down Expand Up @@ -65,7 +65,7 @@

<br>

Wordless 是一款拥有多语种支持的语料库集成工具,可用于语言学、文学及翻译研究,由当时就读于上海外国语大学口译研究专业的硕士研究生叶磊设计并开发。
Wordless 是一款具有多语种支持的语料库集成工具,可用于语言学、文学及翻译研究,由当时就读于上海外国语大学口译研究专业的硕士研究生叶磊设计并开发。

## 下载

Expand Down Expand Up @@ -117,15 +117,29 @@ Bug 提交|[Github Issues](https://github.com/BLKSerene/Wordless/issues)

## 引用

如果你准备发表的成果中使用了 Wordless,请按如下格式进行引用
如果你打算发表使用了 *Wordless* 的成果,请根据期刊论文或电脑软件的格式对 *Wordless* 进行引用

APA(第7版):
1. 根据期刊论文的格式进行引用

APA(第 7 版):
<pre><code>Ye, L. (2024). Wordless: An integrated corpus tool with multilingual support for the study of language, literature, and translation. <i>SoftwareX</i>, <i>28</i>, Article 101931. https://doi.org/10.1016/j.softx.2024.101931</code></pre>

Chicago(第 18 版):
<pre><code>Ye, Lei. “Wordless: An Integrated Corpus Tool with Multilingual Support for the Study of Language, Literature, and Translation.” <i>SoftwareX</i> 28 (December 2024): 101931. https://doi.org/10.1016/j.softx.2024.101931.</code></pre>

MLA(第 9 版):
<pre><code>Ye Lei. “Wordless: An Integrated Corpus Tool with Multilingual Support for the Study of Language, Literature, and Translation.” <i>SoftwareX</i>, vol. 28, Dec. 2024, https://doi.org/10.1016/j.softx.2024.101931.</code></pre>

2. 根据电脑软件的格式进行引用

APA(第 7 版):
<pre><code>Ye, L. (2024). <i>Wordless</i> (Version 3.5.0) [Computer software]. Github. https://github.com/BLKSerene/Wordless</code></pre>

MLA(第8版):
Chicago(第 18 版):
<pre><code>Ye, Lei. <i>Wordless</i>. V. 3.5.0. Released July 1, 2024. PC. https://github.com/BLKSerene/Wordless.</code></pre>

<pre><code>Ye Lei. <i>Wordless</i>, version 3.5.0, 2024. <i>Github</i>, https://github.com/BLKSerene/Wordless.</code></pre>
MLA(第 9 版):
<pre><code>Ye Lei. <i>Wordless</i>. Version 3.5.0, <i>Github</i>, 1 Jul. 2024, https://github.com/BLKSerene/Wordless.</code></pre>

## 使用 *Wordless* 的成果

Expand Down
4 changes: 2 additions & 2 deletions doc/trs/zho_cn/WORKS_USING_WORDLESS.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@
以下列表并非详尽无遗,仅供参考。如果你知道其他使用了 Wordless 的作品没有在下方列出,欢迎提供详细的文献信息。<br>

<div align="center">
<a href="https://github.com/BLKSerene/Wordless/blob/main/doc/trs/zho_cn/WORKS_USING_WORDLESS.md#期刊文章">期刊文章</a> | <a href="https://github.com/BLKSerene/Wordless/blob/main/doc/trs/zho_cn/WORKS_USING_WORDLESS.md#硕士论文">硕士论文</a> | <a href="https://github.com/BLKSerene/Wordless/blob/main/doc/trs/zho_cn/WORKS_USING_WORDLESS.md#博士论文">博士论文</a> | <a href="https://github.com/BLKSerene/Wordless/blob/main/doc/trs/zho_cn/WORKS_USING_WORDLESS.md#会议论文">会议论文</a>
<a href="https://github.com/BLKSerene/Wordless/blob/main/doc/trs/zho_cn/WORKS_USING_WORDLESS.md#期刊论文">期刊论文</a> | <a href="https://github.com/BLKSerene/Wordless/blob/main/doc/trs/zho_cn/WORKS_USING_WORDLESS.md#硕士论文">硕士论文</a> | <a href="https://github.com/BLKSerene/Wordless/blob/main/doc/trs/zho_cn/WORKS_USING_WORDLESS.md#博士论文">博士论文</a> | <a href="https://github.com/BLKSerene/Wordless/blob/main/doc/trs/zho_cn/WORKS_USING_WORDLESS.md#会议论文">会议论文</a>
</div>

<div align="center"><h2>期刊文章</h2></div>
<div align="center"><h2>期刊论文</h2></div>

1. Chang, Y. (2020). A corpus-based comparative study of translation universals in two English translations of Li Sao. *Journal of Literature and Art Studies*, *10*(10), 916–922. https://doi.org/10.17265/2159-5836/2020.10.007
1. Fu, L., & Liu, L. (2024). What are the differences? A comparative study of generative artificial intelligence translation and human translation of scientific texts. *Humanities and Social Sciences Communications*, *11*, Article 1236. https://doi.org/10.1057/s41599-024-03726-7
Expand Down
26 changes: 20 additions & 6 deletions doc/trs/zho_tw/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-->

<div align="center"><img src="/doc/wl_logo.png" alt="Wordless:一款擁有多語種支援的語料庫整合工具,可用於語言學、文學及翻譯研究"></div>
<div align="center"><img src="/doc/wl_logo.png" alt="Wordless:一款具有多語種支援的語料庫整合工具,可用於語言學、文學及翻譯研究"></div>

<br>

Expand Down Expand Up @@ -65,7 +65,7 @@

<br>

Wordless 是一款擁有多語種支援的語料庫整合工具,可用於語言學、文學及翻譯研究,由當時就讀於上海外國語大學口譯研究專業的碩士研究生葉磊設計並開發。
Wordless 是一款具有多語種支援的語料庫整合工具,可用於語言學、文學及翻譯研究,由當時就讀於上海外國語大學口譯研究專業的碩士研究生葉磊設計並開發。

## 下載

Expand Down Expand Up @@ -116,15 +116,29 @@ Bug 提交|[Github Issues](https://github.com/BLKSerene/Wordless/issues)

## 引用

如果你準備發表的成果中使用了 Wordless,請按如下格式進行引用
如果你打算發表使用了 *Wordless* 的成果,請根據期刊論文或電腦軟體的格式對 *Wordless* 進行引用

APA(第7版):
1. 根據期刊論文的格式進行引用

APA(第 7 版):
<pre><code>Ye, L. (2024). Wordless: An integrated corpus tool with multilingual support for the study of language, literature, and translation. <i>SoftwareX</i>, <i>28</i>, Article 101931. https://doi.org/10.1016/j.softx.2024.101931</code></pre>

Chicago(第 18 版):
<pre><code>Ye, Lei. “Wordless: An Integrated Corpus Tool with Multilingual Support for the Study of Language, Literature, and Translation.” <i>SoftwareX</i> 28 (December 2024): 101931. https://doi.org/10.1016/j.softx.2024.101931.</code></pre>

MLA(第 9 版):
<pre><code>Ye Lei. “Wordless: An Integrated Corpus Tool with Multilingual Support for the Study of Language, Literature, and Translation.” <i>SoftwareX</i>, vol. 28, Dec. 2024, https://doi.org/10.1016/j.softx.2024.101931.</code></pre>

2. 根據電腦軟體的格式進行引用

APA(第 7 版):
<pre><code>Ye, L. (2024). <i>Wordless</i> (Version 3.5.0) [Computer software]. Github. https://github.com/BLKSerene/Wordless</code></pre>

MLA(第8版):
Chicago(第 18 版):
<pre><code>Ye, Lei. <i>Wordless</i>. V. 3.5.0. Released July 1, 2024. PC. https://github.com/BLKSerene/Wordless.</code></pre>

<pre><code>Ye Lei. <i>Wordless</i>, version 3.5.0, 2024. <i>Github</i>, https://github.com/BLKSerene/Wordless.</code></pre>
MLA(第 9 版):
<pre><code>Ye Lei. <i>Wordless</i>. Version 3.5.0, <i>Github</i>, 1 Jul. 2024, https://github.com/BLKSerene/Wordless.</code></pre>

## 使用 *Wordless* 的成果

Expand Down
4 changes: 2 additions & 2 deletions doc/trs/zho_tw/WORKS_USING_WORDLESS.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@
以下列表並非詳盡無遺,僅供參考。如果你知道其他使用了 Wordless 的作品沒有在下方列出,歡迎提供詳細的文獻信息。<br>

<div align="center">
<a href="https://github.com/BLKSerene/Wordless/blob/main/doc/trs/zho_tw/WORKS_USING_WORDLESS.md#期刊文章">期刊文章</a> | <a href="https://github.com/BLKSerene/Wordless/blob/main/doc/trs/zho_tw/WORKS_USING_WORDLESS.md#碩士論文">碩士論文</a> | <a href="https://github.com/BLKSerene/Wordless/blob/main/doc/trs/zho_tw/WORKS_USING_WORDLESS.md#博士論文">博士論文</a> | <a href="https://github.com/BLKSerene/Wordless/blob/main/doc/trs/zho_tw/WORKS_USING_WORDLESS.md#會議論文">會議論文</a>
<a href="https://github.com/BLKSerene/Wordless/blob/main/doc/trs/zho_tw/WORKS_USING_WORDLESS.md#期刊論文">期刊論文</a> | <a href="https://github.com/BLKSerene/Wordless/blob/main/doc/trs/zho_tw/WORKS_USING_WORDLESS.md#碩士論文">碩士論文</a> | <a href="https://github.com/BLKSerene/Wordless/blob/main/doc/trs/zho_tw/WORKS_USING_WORDLESS.md#博士論文">博士論文</a> | <a href="https://github.com/BLKSerene/Wordless/blob/main/doc/trs/zho_tw/WORKS_USING_WORDLESS.md#會議論文">會議論文</a>
</div>

<div align="center"><h2>期刊文章</h2></div>
<div align="center"><h2>期刊論文</h2></div>

1. Chang, Y. (2020). A corpus-based comparative study of translation universals in two English translations of Li Sao. *Journal of Literature and Art Studies*, *10*(10), 916–922. https://doi.org/10.17265/2159-5836/2020.10.007
1. Fu, L., & Liu, L. (2024). What are the differences? A comparative study of generative artificial intelligence translation and human translation of scientific texts. *Humanities and Social Sciences Communications*, *11*, Article 1236. https://doi.org/10.1057/s41599-024-03726-7
Expand Down
77 changes: 54 additions & 23 deletions wordless/wl_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -771,51 +771,82 @@ def __init__(self, main):

self.label_citing = wl_labels.Wl_Label_Dialog(
self.tr('''
<div>If you are going to publish a work that uses Wordless, please cite as follows.</div>
<div>If you are going to publish a work that uses <i>Wordless</i>, please cite <i>Wordless</i> as a journal article or a piece of computer software.</div>
'''),
self
)

self.label_select_citation_sys = QLabel(self.tr('Select citation system:'), self)
self.combo_box_select_citation_sys = wl_boxes.Wl_Combo_Box(self)
self.label_citation_sys = QLabel(self.tr('Citation system:'), self)
self.combo_box_citation_sys = wl_boxes.Wl_Combo_Box(self)
self.label_cite_as = QLabel(self.tr('Cite as:'), self)
self.combo_box_cite_as = wl_boxes.Wl_Combo_Box(self)

self.combo_box_select_citation_sys.addItems([
self.combo_box_citation_sys.addItems([
self.tr('APA (7th edition)'),
self.tr('MLA (8th edition)')
self.tr('Chicago (18th edition)'),
self.tr('MLA (9th edition)')
])
self.combo_box_cite_as.addItems([
self.tr('A journal article'),
self.tr('A piece of computer software')
])

self.combo_box_select_citation_sys.currentTextChanged.connect(self.select_citation_sys_changed)
self.combo_box_citation_sys.currentTextChanged.connect(self.citation_changed)
self.combo_box_cite_as.currentTextChanged.connect(self.citation_changed)

self.layout_info.addWidget(self.label_citing, 0, 0, 1, 2)
self.layout_info.addWidget(self.label_select_citation_sys, 1, 0)
self.layout_info.addWidget(self.combo_box_select_citation_sys, 1, 1)
self.layout_info.addWidget(self.text_edit_info, 2, 0, 1, 2)
self.layout_info.addWidget(self.label_citation_sys, 1, 0)
self.layout_info.addWidget(self.combo_box_citation_sys, 1, 1)
self.layout_info.addWidget(self.label_cite_as, 2, 0)
self.layout_info.addWidget(self.combo_box_cite_as, 2, 1)
self.layout_info.addWidget(self.text_edit_info, 3, 0, 1, 2)

self.layout_info.setRowStretch(2, 1)
self.layout_info.setRowStretch(3, 1)
self.layout_info.setColumnStretch(1, 1)

self.load_settings()

def load_settings(self):
settings = copy.deepcopy(self.main.settings_custom['menu']['help']['citing'])

self.combo_box_select_citation_sys.setCurrentText(settings['select_citation_sys'])
self.combo_box_citation_sys.setCurrentText(settings['citation_sys'])
self.combo_box_cite_as.setCurrentText(settings['cite_as'])

self.select_citation_sys_changed()
self.citation_changed()

def select_citation_sys_changed(self):
def citation_changed(self):
settings = self.main.settings_custom['menu']['help']['citing']

settings['select_citation_sys'] = self.combo_box_select_citation_sys.currentText()

if settings['select_citation_sys'].startswith('APA'):
self.set_info(
f'Ye, L. ({self.main.copyright_year}). <i>Wordless</i> (Version {self.main.ver}) [Computer software]. Github. https://github.com/BLKSerene/Wordless'
)
elif settings['select_citation_sys'].startswith('MLA'):
self.set_info(
f'Ye Lei. <i>Wordless</i>, version {self.main.ver}, {self.main.copyright_year}. <i>Github</i>, https://github.com/BLKSerene/Wordless.'
)
settings['citation_sys'] = self.combo_box_citation_sys.currentText()
settings['cite_as'] = self.combo_box_cite_as.currentText()

if settings['citation_sys'].startswith('APA'):
if settings['cite_as'] == self.tr('A journal article'):
self.set_info(
'Ye, L. (2024). Wordless: An integrated corpus tool with multilingual support for the study of language, literature, and translation. <i>SoftwareX</i>, <i>28</i>, Article 101931. https://doi.org/10.1016/j.softx.2024.101931'
)
elif settings['cite_as'] == self.tr('A piece of computer software'):
self.set_info(
f'Ye, L. ({self.main.copyright_year}). <i>Wordless</i> (Version {self.main.ver}) [Computer software]. Github. https://github.com/BLKSerene/Wordless'
)
elif settings['citation_sys'].startswith('Chicago'):
if settings['cite_as'] == self.tr('A journal article'):
self.set_info(
'Ye, Lei. “Wordless: An Integrated Corpus Tool with Multilingual Support for the Study of Language, Literature, and Translation.” <i>SoftwareX</i> 28 (December 2024): 101931. https://doi.org/10.1016/j.softx.2024.101931.'
)
elif settings['cite_as'] == self.tr('A piece of computer software'):
self.set_info(
f'Ye, Lei. <i>Wordless</i>. V. {self.main.ver}. Released July 1, {self.main.copyright_year}. PC. https://github.com/BLKSerene/Wordless.'
)
elif settings['citation_sys'].startswith('MLA'):
if settings['cite_as'] == self.tr('A journal article'):
self.set_info(
'Ye Lei. “Wordless: An Integrated Corpus Tool with Multilingual Support for the Study of Language, Literature, and Translation.” <i>SoftwareX</i>, vol. 28, Dec. 2024, https://doi.org/10.1016/j.softx.2024.101931.'
)
elif settings['cite_as'] == self.tr('A piece of computer software'):
self.set_info(
f'Ye Lei. <i>Wordless</i>. Version {self.main.ver}, <i>Github</i>, 1 Jul. {self.main.copyright_year}, https://github.com/BLKSerene/Wordless.'
)

class Wl_Dialog_Donating(wl_dialogs.Wl_Dialog_Info):
def __init__(self, main):
Expand Down
3 changes: 2 additions & 1 deletion wordless/wl_settings/wl_settings_default.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,8 @@ def init_settings_default(main):

'help': {
'citing': {
'select_citation_sys': _tr('wl_settings_default', 'APA (7th edition)')
'citation_sys': _tr('wl_settings_default', 'APA (7th edition)'),
'cite_as': _tr('wl_settings_default', 'As a journal article')
},

'donating': {
Expand Down

0 comments on commit 5e7bad1

Please sign in to comment.