Skip to content

Commit

Permalink
CLDR-17018 revamp ShowKeyboards to just point to the landing page (#3219
Browse files Browse the repository at this point in the history
)

- ShowKeyboards is out of date
- Also see CLDR-16655
  • Loading branch information
srl295 authored Aug 24, 2023
1 parent 515da67 commit 4722821
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
import com.ibm.icu.text.Collator;
import com.ibm.icu.text.Transliterator;
import com.ibm.icu.text.UnicodeSet;
import com.ibm.icu.util.ICUUncheckedIOException;
import com.ibm.icu.util.ULocale;
import java.io.IOException;
import java.io.PrintWriter;
Expand Down Expand Up @@ -50,7 +49,6 @@
import org.unicode.cldr.util.FileCopier;
import org.unicode.cldr.util.LanguageTagCanonicalizer;
import org.unicode.cldr.util.Log;
import org.unicode.cldr.util.PatternCache;
import org.unicode.cldr.util.SupplementalDataInfo;
import org.unicode.cldr.util.TransliteratorUtilities;
import org.unicode.cldr.util.UnicodeSetPrettyPrinter;
Expand Down Expand Up @@ -104,21 +102,21 @@ public static void main(String[] args) throws IOException {
FileCopier.copy(
ShowKeyboards.class, "keyboards-index.html", keyboardChartDir, "index.html");

Matcher idMatcher = PatternCache.get(idPattern).matcher("");
try {
Log.setLog(CLDRPaths.LOG_DIRECTORY + "keyboard-log.txt");
} catch (IOException e) {
throw new ICUUncheckedIOException(e);
}
boolean layoutsOnly = MyOptions.layouts.option.doesOccur();
boolean repertoireOnly = MyOptions.repertoire.option.doesOccur();

if (!repertoireOnly) {
showHtml(idMatcher);
}
if (!layoutsOnly) {
showRepertoire(idMatcher);
}
// Matcher idMatcher = PatternCache.get(idPattern).matcher("");
// try {
// Log.setLog(CLDRPaths.LOG_DIRECTORY + "keyboard-log.txt");
// } catch (IOException e) {
// throw new ICUUncheckedIOException(e);
// }
// boolean layoutsOnly = MyOptions.layouts.option.doesOccur();
// boolean repertoireOnly = MyOptions.repertoire.option.doesOccur();

// if (!repertoireOnly) {
// showHtml(idMatcher);
// }
// if (!layoutsOnly) {
// showRepertoire(idMatcher);
// }
}

public static void showRepertoire(Matcher idMatcher) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
<tr><td style="text-align: center" colSpan="3"><a class="upLink" href="../index.html">Main Charts Index</a></td></tr>
</table>
</div>

<!--
<p align="left">The keyboard charts provide a side-by-side
comparison of data from different locales for each field.</p>
<ul>
Expand All @@ -56,8 +56,9 @@
generate, broken down by certain categories.</li>
<li><a href="layouts/index.html">layouts</a> - These show the
different available layouts per locale.</li>
</ul>
</ul> -->
<p>
The Keyboard charts are being revamped.
For more details, see <a target='ABOUT_KB'
href="http://cldr.unicode.org/index/charts/keyboards">About
Keyboard Charts</a>.
Expand Down

0 comments on commit 4722821

Please sign in to comment.