From 8fa6d705b5f72d3d4981d0c58c4e96d0331a0e32 Mon Sep 17 00:00:00 2001 From: h7x4 Date: Thu, 28 May 2020 22:51:47 +0200 Subject: [PATCH] Fix "thaught in" capitalisation --- jishoScrape/src/texConversion.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/jishoScrape/src/texConversion.js b/jishoScrape/src/texConversion.js index 4a89bf2..c182017 100644 --- a/jishoScrape/src/texConversion.js +++ b/jishoScrape/src/texConversion.js @@ -8,6 +8,10 @@ function getKanjiTexData(kanjiArray) { const kunyomi = textFiltration.convertKunyomi(kanji); const onyomi = textFiltration.convertOnyomi(kanji); + kanji.taughtIn = kanji.taughtIn ? + kanji.taughtIn.charAt(0).toUpperCase() + kanji.taughtIn.slice(1) + : ''; + return { kanji: kanji.query, kanjiPageHeader: `\\kanjiPageHeader{${kanji.query}}{${kanji.taughtIn}}{${kanji.jlptLevel}}{${kanji.strokeCount}}{${kanji.radical.symbol}}`,