hanzi-rails 0.0.3 → 0.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,22 +1,18 @@
1
1
  @charset "UTF-8";
2
2
 
3
- /*! 漢字標準格式 v3.1.0 | MIT License | css.hanzi.co */
3
+ /*! 漢字標準格式 v3.2.0 | MIT License | css.hanzi.co */
4
4
  /*! Han.css: the CSS typography framework optimised for Hanzi */
5
5
 
6
- /*! normalize.css v3.0.2 | MIT License | git.io/normalize */
6
+ /*! normalize.css v3.0.3 | MIT License | github.com/necolas/normalize.css */
7
7
  /**
8
8
  * 1. Set default font family to sans-serif.
9
- * 2. Prevent iOS text size adjust after orientation change, without disabling
10
- * user zoom.
9
+ * 2. Prevent iOS and IE text size adjust after device orientation change,
10
+ * without disabling user zoom.
11
11
  */
12
-
13
- /* FONT PATH
14
- * -------------------------- */
15
12
  //= depend_on_asset "han.otf"
16
13
  //= depend_on_asset "han.ttf"
17
14
  //= depend_on_asset "han.woff"
18
15
  <% v = Hanzi::Rails::HANZI_VERSION %>
19
-
20
16
  html {
21
17
  font-family: sans-serif;
22
18
  /* 1 */
@@ -82,7 +78,7 @@ audio:not([controls]) {
82
78
 
83
79
  /**
84
80
  * Address `[hidden]` styling not present in IE 8/9/10.
85
- * Hide the `template` element in IE 8/9/11, Safari, and Firefox < 22.
81
+ * Hide the `template` element in IE 8/9/10/11, Safari, and Firefox < 22.
86
82
  */
87
83
  [hidden],
88
84
  template {
@@ -99,7 +95,8 @@ a {
99
95
  }
100
96
 
101
97
  /**
102
- * Improve readability when focused and also mouse hovered in all browsers.
98
+ * Improve readability of focused elements when they are also in an
99
+ * active/hover state.
103
100
  */
104
101
  a:active,
105
102
  a:hover {
@@ -202,7 +199,6 @@ figure {
202
199
  * Address differences between Firefox and other browsers.
203
200
  */
204
201
  hr {
205
- -moz-box-sizing: content-box;
206
202
  box-sizing: content-box;
207
203
  height: 0;
208
204
  }
@@ -337,16 +333,13 @@ input[type="number"]::-webkit-outer-spin-button {
337
333
 
338
334
  /**
339
335
  * 1. Address `appearance` set to `searchfield` in Safari and Chrome.
340
- * 2. Address `box-sizing` set to `border-box` in Safari and Chrome
341
- * (include `-moz` to future-proof).
336
+ * 2. Address `box-sizing` set to `border-box` in Safari and Chrome.
342
337
  */
343
338
  input[type="search"] {
344
339
  -webkit-appearance: textfield;
345
340
  /* 1 */
346
- -moz-box-sizing: content-box;
347
- -webkit-box-sizing: content-box;
348
- /* 2 */
349
341
  box-sizing: content-box;
342
+ /* 2 */
350
343
  }
351
344
 
352
345
  /**
@@ -409,15 +402,15 @@ th {
409
402
  padding: 0;
410
403
  }
411
404
 
412
- /* Base
413
- @mixin ========================================================================= */
405
+ /* Base
406
+ ------ */
414
407
  html {
415
408
  line-height: 1.3;
416
409
  -webkit-font-smoothing: subpixel-antialiased;
417
410
  }
418
411
 
419
- /* Grouping content
420
- @mixin ========================================================================= */
412
+ /* Grouping content
413
+ ------------------ */
421
414
  /**
422
415
  * Paragraphs, lists, figures and blockquotes
423
416
  * (段落、清單、圖表、區塊引用)
@@ -450,8 +443,8 @@ pre {
450
443
  word-wrap: normal;
451
444
  }
452
445
 
453
- /* Text-level semantics & edits
454
- @mixin ========================================================================= */
446
+ /* Text-level semantics & edits
447
+ ------------------------------ */
455
448
  /**
456
449
  * Hyperlinks
457
450
  * (超連結)
@@ -579,12 +572,12 @@ s + s,
579
572
  s + del,
580
573
  del + s,
581
574
  del + del,
582
- .hyu-js-rendered u.adjacent,
583
- .hyu-js-rendered ins.adjacent,
584
- .hyu-js-rendered s + s.adjacent,
585
- .hyu-js-rendered s + del.adjacent,
586
- .hyu-js-rendered del + s.adjacent,
587
- .hyu-js-rendered del + del.adjacent {
575
+ .han-js-rendered u.adjacent,
576
+ .han-js-rendered ins.adjacent,
577
+ .han-js-rendered s + s.adjacent,
578
+ .han-js-rendered s + del.adjacent,
579
+ .han-js-rendered del + s.adjacent,
580
+ .han-js-rendered del + del.adjacent {
588
581
  margin-left: .125em;
589
582
  }
590
583
 
@@ -632,19 +625,19 @@ ruby > rt:not(:empty):after {
632
625
  width: -moz-calc( 1em);
633
626
  }
634
627
 
635
- .hyu-js-rendered u + u,
636
- .hyu-js-rendered u + ins,
637
- .hyu-js-rendered ins + u,
638
- .hyu-js-rendered ins + ins,
639
- .hyu-js-rendered s + s,
640
- .hyu-js-rendered s + del,
641
- .hyu-js-rendered del + s,
642
- .hyu-js-rendered del + del {
628
+ .han-js-rendered u + u,
629
+ .han-js-rendered u + ins,
630
+ .han-js-rendered ins + u,
631
+ .han-js-rendered ins + ins,
632
+ .han-js-rendered s + s,
633
+ .han-js-rendered s + del,
634
+ .han-js-rendered del + s,
635
+ .han-js-rendered del + del {
643
636
  margin-left: auto;
644
637
  }
645
638
 
646
- .hyu-js-rendered em:lang(zh),
647
- .hyu-js-rendered em:lang(ja) {
639
+ .han-js-rendered em:lang(zh),
640
+ .han-js-rendered em:lang(ja) {
648
641
  padding-bottom: auto;
649
642
  border-bottom-width: 0;
650
643
  }
@@ -652,13 +645,13 @@ ruby > rt:not(:empty):after {
652
645
  .no-textemphasis em:lang(ja) {
653
646
  line-height: 2;
654
647
  }
655
- .no-textemphasis em:lang(zh) char,
656
- .no-textemphasis em:lang(ja) char {
648
+ .no-textemphasis em:lang(zh) h-char,
649
+ .no-textemphasis em:lang(ja) h-char {
657
650
  position: relative;
658
651
  font-style: inherit;
659
652
  }
660
- .no-textemphasis em:lang(zh) char:after,
661
- .no-textemphasis em:lang(ja) char:after {
653
+ .no-textemphasis em:lang(zh) h-char:after,
654
+ .no-textemphasis em:lang(ja) h-char:after {
662
655
  -moz-text-emphasis: none;
663
656
  -webkit-text-emphasis: none;
664
657
  text-emphasis: none;
@@ -685,50 +678,53 @@ ruby > rt:not(:empty):after {
685
678
  font-family: Georgia, "Times New Roman", Arial, !important;
686
679
  }
687
680
 
688
- em:lang(zh) char.punct,
689
- em:lang(ja) char.punct,
690
- em:lang(zh) char.biaodian,
691
- em:lang(ja) char.biaodian {
681
+ em:lang(zh) h-char.punct,
682
+ em:lang(ja) h-char.punct,
683
+ em:lang(zh) h-char.biaodian,
684
+ em:lang(ja) h-char.biaodian {
692
685
  -moz-text-emphasis: none;
693
686
  -webkit-text-emphasis: none;
694
687
  text-emphasis: none;
695
688
  }
696
- .no-textemphasis em:lang(zh) char.punct:after,
697
- .no-textemphasis em:lang(ja) char.punct:after,
698
- .no-textemphasis em:lang(zh) char.biaodian:after,
699
- .no-textemphasis em:lang(ja) char.biaodian:after {
689
+ .no-textemphasis em:lang(zh) h-char.punct:after,
690
+ .no-textemphasis em:lang(ja) h-char.punct:after,
691
+ .no-textemphasis em:lang(zh) h-char.biaodian:after,
692
+ .no-textemphasis em:lang(ja) h-char.biaodian:after {
700
693
  content: none !important;
701
694
  }
702
695
 
703
- .no-textemphasis em:lang(zh) char:after {
696
+ .no-textemphasis em:lang(zh) h-char:after {
704
697
  margin-top: 1em;
705
698
  content: "\25cf";
706
699
  }
707
- .no-textemphasis em:lang(ja) char:after {
700
+ .no-textemphasis em:lang(ja) h-char:after {
708
701
  margin-top: -.7em;
709
702
  content: "\fe45";
710
703
  }
711
704
 
712
- hruby {
705
+ h-ruby {
713
706
  display: inline;
714
707
  line-height: 2;
715
708
  }
716
- hruby rp {
709
+ h-ruby rp {
717
710
  display: none;
718
711
  }
719
- hruby ru[annotation] > rt {
712
+ h-ruby h-ru[annotation] > rt {
720
713
  display: inline-block;
721
714
  height: 0;
722
715
  width: 0;
723
716
  font: 0/0 hidden-text;
724
717
  }
725
- hruby ru {
718
+ .pseudo-element-clipboard h-ruby h-ru[annotation] > rt {
719
+ display: none;
720
+ }
721
+ h-ruby h-ru {
726
722
  position: relative;
727
723
  display: inline-block;
728
724
  text-indent: 0;
729
725
  }
730
- hruby ru:before,
731
- hruby zhuyin {
726
+ h-ruby h-ru:before,
727
+ h-ruby h-zhuyin {
732
728
  -moz-transform: scale(.55);
733
729
  -ms-transform: scale(.55);
734
730
  -webkit-transform: scale(.55);
@@ -744,10 +740,10 @@ hruby zhuyin {
744
740
  position: absolute;
745
741
  display: inline-block;
746
742
  }
747
- hruby ru[annotation] {
743
+ h-ruby h-ru[annotation] {
748
744
  text-align: center;
749
745
  }
750
- hruby ru[annotation]:before {
746
+ h-ruby h-ru[annotation]:before {
751
747
  left: -265%;
752
748
  top: -.5em;
753
749
  vertical-align: top;
@@ -758,16 +754,16 @@ hruby ru[annotation]:before {
758
754
  text-align: center;
759
755
  text-indent: 0;
760
756
  }
761
- hruby[rightangle] ru[annotation]:before {
757
+ h-ruby[rightangle] h-ru[annotation]:before {
762
758
  left: -250%;
763
759
  }
764
- hruby ru[zhuyin] {
760
+ h-ruby h-ru[zhuyin] {
765
761
  display: inline-block;
766
762
  position: relative;
767
763
  width: 1.8em;
768
764
  text-align: left;
769
765
  }
770
- hruby ru[zhuyin] zhuyin {
766
+ h-ruby h-ru[zhuyin] h-zhuyin {
771
767
  right: .2em;
772
768
  top: 0;
773
769
  height: 2.7em;
@@ -776,100 +772,98 @@ hruby ru[zhuyin] zhuyin {
776
772
  white-space: pre-wrap;
777
773
  word-break: break-all;
778
774
  }
779
- hruby ru[zhuyin] diao {
775
+ h-ruby h-ru[zhuyin] h-diao {
780
776
  position: absolute;
781
777
  right: -.9em;
782
778
  top: 0;
783
779
  display: inline-block;
784
780
  width: 1em;
785
781
  }
786
- hruby ru[zhuyin][length="0"],
787
- hruby ru[zhuyin]:empty {
782
+ h-ruby h-ru[zhuyin][length="0"],
783
+ h-ruby h-ru[zhuyin]:empty {
788
784
  width: auto;
789
785
  }
790
- hruby ru[zhuyin][length="0"] zhuyin,
791
- hruby ru[zhuyin]:empty zhuyin {
786
+ h-ruby h-ru[zhuyin][length="0"] h-zhuyin,
787
+ h-ruby h-ru[zhuyin]:empty h-zhuyin {
792
788
  display: none;
793
789
  }
794
- hruby ru[zhuyin][length="1"] zhuyin {
790
+ h-ruby h-ru[zhuyin][length="1"] h-zhuyin {
795
791
  margin-top: .125em;
796
792
  }
797
- hruby ru[zhuyin][length="1"] diao {
793
+ h-ruby h-ru[zhuyin][length="1"] h-diao {
798
794
  margin-top: -.35em;
799
795
  }
800
- hruby ru[zhuyin][length="2"] zhuyin {
796
+ h-ruby h-ru[zhuyin][length="2"] h-zhuyin {
801
797
  margin-top: -.175em;
802
798
  }
803
- hruby ru[zhuyin][length="2"] diao {
799
+ h-ruby h-ru[zhuyin][length="2"] h-diao {
804
800
  margin-top: .5em;
805
801
  }
806
- hruby ru[zhuyin][length="3"] zhuyin {
802
+ h-ruby h-ru[zhuyin][length="3"] h-zhuyin {
807
803
  margin-top: -.45em;
808
804
  }
809
- hruby ru[zhuyin][length="3"] diao {
805
+ h-ruby h-ru[zhuyin][length="3"] h-diao {
810
806
  margin-top: 1.3em;
811
807
  }
812
- hruby ru[zhuyin][diao="˙"] diao {
808
+ h-ruby h-ru[zhuyin][diao="˙"] h-diao {
813
809
  right: -.35em;
814
810
  }
815
- hruby ru[zhuyin][diao="˙"][length="1"] diao {
811
+ h-ruby h-ru[zhuyin][diao="˙"][length="1"] h-diao {
816
812
  margin-top: -.5em;
817
813
  }
818
- hruby ru[zhuyin][diao="˙"][length="2"] diao {
814
+ h-ruby h-ru[zhuyin][diao="˙"][length="2"] h-diao {
819
815
  margin-top: -.3em;
820
816
  }
821
- hruby ru[zhuyin][diao="˙"][length="3"] diao {
817
+ h-ruby h-ru[zhuyin][diao="˙"][length="3"] h-diao {
822
818
  margin-top: -.25em;
823
819
  }
824
- hruby ru[zhuyin][diao="˪"] diao,
825
- hruby ru[zhuyin][diao="˫"] diao {
820
+ h-ruby h-ru[zhuyin][diao="˪"] h-diao,
821
+ h-ruby h-ru[zhuyin][diao="˫"] h-diao {
826
822
  -moz-transform: scale(1.2);
827
823
  -ms-transform: scale(1.2);
828
824
  -webkit-transform: scale(1.2);
829
825
  transform: scale(1.2);
830
826
  margin-right: -.25em;
831
827
  }
832
- hruby ru[zhuyin][diao^="ㆴ"] diao,
833
- hruby ru[zhuyin][diao^="ㆵ"] diao,
834
- hruby ru[zhuyin][diao^="ㆶ"] diao,
835
- hruby ru[zhuyin][diao^="ㆷ"] diao,
836
- hruby ru[zhuyin][diao="󳆴"] diao,
837
- hruby ru[zhuyin][diao="󳆵"] diao,
838
- hruby ru[zhuyin][diao="󳆶"] diao,
839
- hruby ru[zhuyin][diao="󳆷"] diao {
828
+ h-ruby h-ru[zhuyin][diao^="ㆴ"] h-diao,
829
+ h-ruby h-ru[zhuyin][diao^="ㆵ"] h-diao,
830
+ h-ruby h-ru[zhuyin][diao^="ㆶ"] h-diao,
831
+ h-ruby h-ru[zhuyin][diao^="ㆷ"] h-diao,
832
+ h-ruby h-ru[zhuyin][diao="󳆴"] h-diao,
833
+ h-ruby h-ru[zhuyin][diao="󳆵"] h-diao,
834
+ h-ruby h-ru[zhuyin][diao="󳆶"] h-diao,
835
+ h-ruby h-ru[zhuyin][diao="󳆷"] h-diao {
840
836
  top: 20%;
841
837
  margin-right: -.3em;
842
838
  }
843
- hruby ru[annotation]:before,
844
- hruby[rightangle] ru[annotation][order="1"]:before {
839
+ h-ruby h-ru[annotation]:before,
840
+ h-ruby[rightangle] h-ru[annotation][order="1"]:before {
845
841
  top: -.5em;
846
842
  }
847
- hruby ru[order="1"]:before,
848
- hruby[rightangle] ru[annotation][order="0"]:before {
843
+ h-ruby h-ru[order="1"]:before,
844
+ h-ruby[rightangle] h-ru[annotation][order="0"]:before {
849
845
  bottom: -.4em;
850
846
  top: auto;
851
847
  }
852
- hruby[rightangle] ru[annotation]:before {
848
+ h-ruby[rightangle] h-ru[annotation]:before {
853
849
  margin-left: -.4em;
854
850
  }
855
851
  @media screen and (-webkit-min-device-pixel-ratio: 1.5), (min-resolution: 192dpi) {
856
- hruby yin {
852
+ h-ruby h-yin {
857
853
  -moz-transform: scale(.8);
858
854
  -ms-transform: scale(.8);
859
855
  -webkit-transform: scale(.8);
860
856
  transform: scale(.8);
861
857
  display: inline-block;
862
858
  }
863
-
864
- hruby ru[zhuyin][diao="˪"] diao,
865
- hruby ru[zhuyin][diao="˫"] diao {
859
+ h-ruby h-ru[zhuyin][diao="˪"] h-diao,
860
+ h-ruby h-ru[zhuyin][diao="˫"] h-diao {
866
861
  -moz-transform: scale(1);
867
862
  -ms-transform: scale(1);
868
863
  -webkit-transform: scale(1);
869
864
  transform: scale(1);
870
865
  }
871
-
872
- hruby ru[zhuyin][diao="˙"] diao {
866
+ h-ruby h-ru[zhuyin][diao="˙"] h-diao {
873
867
  -moz-transform: scale(.8);
874
868
  -ms-transform: scale(.8);
875
869
  -webkit-transform: scale(.8);
@@ -878,7 +872,8 @@ hruby[rightangle] ru[annotation]:before {
878
872
  }
879
873
  }
880
874
 
881
- jinze {
875
+ h-jinze,
876
+ h-word {
882
877
  display: inline-block;
883
878
  text-indent: 0;
884
879
  }
@@ -1383,8 +1378,22 @@ jinze {
1383
1378
  unicode-range: U+201C-201D, U+2018-2019;
1384
1379
  }
1385
1380
 
1381
+ @font-face {
1382
+ font-family: "Biaodian Pro Sans GB";
1383
+ font-weight: bold;
1384
+ src: local("Hiragino Sans GB"), local("Heiti SC"), local(STHeiti), local(SimSun), local(PMingLiU);
1385
+ unicode-range: U+201C-201D, U+2018-2019;
1386
+ }
1387
+
1388
+ @font-face {
1389
+ font-family: "Biaodian Pro Serif GB";
1390
+ src: local("Lisong Pro"), local("Heiti SC"), local(STHeiti), local(SimSun), local(PMingLiU);
1391
+ unicode-range: U+201C-201D, U+2018-2019;
1392
+ }
1393
+
1386
1394
  @font-face {
1387
1395
  font-family: "Biaodian Pro Serif GB";
1396
+ font-weight: bold;
1388
1397
  src: local("Lisong Pro"), local("Heiti SC"), local(STHeiti), local(SimSun), local(PMingLiU);
1389
1398
  unicode-range: U+201C-201D, U+2018-2019;
1390
1399
  }
@@ -1546,51 +1555,290 @@ jinze {
1546
1555
  unicode-range: U+2014, U+2026, U+00B7;
1547
1556
  }
1548
1557
 
1558
+ @font-face {
1559
+ font-family: "Biaodian Basic";
1560
+ font-weight: bold;
1561
+ src: url('<%= font_path('han.woff') %>?v=<%= v %>') format("woff"), url('<%= font_path('han.otf') %>?v=<%= v %>') format("opentype");
1562
+ unicode-range: U+2014, U+2026, U+00B7;
1563
+ }
1564
+
1549
1565
  @font-face {
1550
1566
  font-family: "Biaodian Sans";
1551
- src: local(lying-to-firefox);
1567
+ font-weight: bold;
1568
+ src: url('<%= font_path('han.woff') %>?v=<%= v %>') format("woff"), url('<%= font_path('han.otf') %>?v=<%= v %>') format("opentype");
1569
+ unicode-range: U+2014, U+2026, U+00B7;
1570
+ }
1571
+
1572
+ @font-face {
1573
+ font-family: "Biaodian Pro Sans";
1574
+ font-weight: bold;
1575
+ src: url('<%= font_path('han.woff') %>?v=<%= v %>') format("woff"), url('<%= font_path('han.otf') %>?v=<%= v %>') format("opentype");
1576
+ unicode-range: U+2014, U+2026, U+00B7;
1577
+ }
1578
+
1579
+ @font-face {
1580
+ font-family: "Biaodian Pro Sans";
1581
+ font-weight: bold;
1582
+ src: url('<%= font_path('han.woff') %>?v=<%= v %>') format("woff"), url('<%= font_path('han.otf') %>?v=<%= v %>') format("opentype");
1583
+ unicode-range: U+2014, U+2026, U+00B7;
1584
+ }
1585
+
1586
+ @font-face {
1587
+ font-family: "Biaodian Pro Sans CNS";
1588
+ font-weight: bold;
1589
+ src: url('<%= font_path('han.woff') %>?v=<%= v %>') format("woff"), url('<%= font_path('han.otf') %>?v=<%= v %>') format("opentype");
1590
+ unicode-range: U+2014, U+2026, U+00B7;
1591
+ }
1592
+
1593
+ @font-face {
1594
+ font-family: "Biaodian Pro Sans GB";
1595
+ font-weight: bold;
1596
+ src: url('<%= font_path('han.woff') %>?v=<%= v %>') format("woff"), url('<%= font_path('han.otf') %>?v=<%= v %>') format("opentype");
1597
+ unicode-range: U+2014, U+2026, U+00B7;
1598
+ }
1599
+
1600
+ @font-face {
1601
+ font-family: "Biaodian Pro Serif";
1602
+ font-weight: bold;
1603
+ src: url('<%= font_path('han.woff') %>?v=<%= v %>') format("woff"), url('<%= font_path('han.otf') %>?v=<%= v %>') format("opentype");
1604
+ unicode-range: U+2014, U+2026, U+00B7;
1605
+ }
1606
+
1607
+ @font-face {
1608
+ font-family: "Biaodian Pro Serif CNS";
1609
+ font-weight: bold;
1610
+ src: url('<%= font_path('han.woff') %>?v=<%= v %>') format("woff"), url('<%= font_path('han.otf') %>?v=<%= v %>') format("opentype");
1611
+ unicode-range: U+2014, U+2026, U+00B7;
1612
+ }
1613
+
1614
+ @font-face {
1615
+ font-family: "Biaodian Pro Serif GB";
1616
+ font-weight: bold;
1617
+ src: url('<%= font_path('han.woff') %>?v=<%= v %>') format("woff"), url('<%= font_path('han.otf') %>?v=<%= v %>') format("opentype");
1618
+ unicode-range: U+2014, U+2026, U+00B7;
1619
+ }
1620
+
1621
+ @font-face {
1622
+ font-family: "Biaodian Sans";
1623
+ src: local("Helvetica Neue"), local(Helvetica), local(Arial);
1552
1624
  unicode-range: U+270C;
1553
1625
  }
1554
1626
 
1555
1627
  @font-face {
1556
- font-family: "Biaodian Serif";
1557
- src: local(lying-to-firefox);
1628
+ font-family: "Biaodian Sans";
1629
+ font-weight: bold;
1630
+ src: local("Helvetica Neue Bold"), local("Helvetica Bold"), local("Arial Bold");
1631
+ unicode-range: U+270C;
1632
+ }
1633
+
1634
+ @font-face {
1635
+ font-family: "Biaodian Sans";
1636
+ font-style: italic;
1637
+ src: local("Helvetica Neue Italic"), local("Helvetica Oblique"), local("Arial Italic");
1638
+ unicode-range: U+270C;
1639
+ }
1640
+
1641
+ @font-face {
1642
+ font-family: "Biaodian Sans";
1643
+ font-style: italic;
1644
+ font-weight: bold;
1645
+ src: local("Helvetica Neue Bold Italic"), local("Helvetica Bold Oblique"), local("Arial Bold Italic");
1558
1646
  unicode-range: U+270C;
1559
1647
  }
1560
1648
 
1561
1649
  @font-face {
1562
1650
  font-family: "Biaodian Pro Sans";
1563
- src: local(lying-to-firefox);
1651
+ src: local("Helvetica Neue"), local(Helvetica), local(Arial);
1564
1652
  unicode-range: U+270C;
1565
1653
  }
1566
1654
 
1567
1655
  @font-face {
1568
- font-family: "Biaodian Pro Serif";
1569
- src: local(lying-to-firefox);
1656
+ font-family: "Biaodian Pro Sans";
1657
+ font-weight: bold;
1658
+ src: local("Helvetica Neue Bold"), local("Helvetica Bold"), local("Arial Bold");
1659
+ unicode-range: U+270C;
1660
+ }
1661
+
1662
+ @font-face {
1663
+ font-family: "Biaodian Pro Sans";
1664
+ font-style: italic;
1665
+ src: local("Helvetica Neue Italic"), local("Helvetica Oblique"), local("Arial Italic");
1666
+ unicode-range: U+270C;
1667
+ }
1668
+
1669
+ @font-face {
1670
+ font-family: "Biaodian Pro Sans";
1671
+ font-style: italic;
1672
+ font-weight: bold;
1673
+ src: local("Helvetica Neue Bold Italic"), local("Helvetica Bold Oblique"), local("Arial Bold Italic");
1570
1674
  unicode-range: U+270C;
1571
1675
  }
1572
1676
 
1573
1677
  @font-face {
1574
1678
  font-family: "Biaodian Pro Sans CNS";
1575
- src: local(lying-to-firefox);
1679
+ src: local("Helvetica Neue"), local(Helvetica), local(Arial);
1576
1680
  unicode-range: U+270C;
1577
1681
  }
1578
1682
 
1579
1683
  @font-face {
1580
- font-family: "Biaodian Pro Serif CNS";
1581
- src: local(lying-to-firefox);
1684
+ font-family: "Biaodian Pro Sans CNS";
1685
+ font-weight: bold;
1686
+ src: local("Helvetica Neue Bold"), local("Helvetica Bold"), local("Arial Bold");
1687
+ unicode-range: U+270C;
1688
+ }
1689
+
1690
+ @font-face {
1691
+ font-family: "Biaodian Pro Sans CNS";
1692
+ font-style: italic;
1693
+ src: local("Helvetica Neue Italic"), local("Helvetica Oblique"), local("Arial Italic");
1694
+ unicode-range: U+270C;
1695
+ }
1696
+
1697
+ @font-face {
1698
+ font-family: "Biaodian Pro Sans CNS";
1699
+ font-style: italic;
1700
+ font-weight: bold;
1701
+ src: local("Helvetica Neue Bold Italic"), local("Helvetica Bold Oblique"), local("Arial Bold Italic");
1582
1702
  unicode-range: U+270C;
1583
1703
  }
1584
1704
 
1585
1705
  @font-face {
1586
1706
  font-family: "Biaodian Pro Sans GB";
1587
- src: local(lying-to-firefox);
1707
+ src: local("Helvetica Neue"), local(Helvetica), local(Arial);
1708
+ unicode-range: U+270C;
1709
+ }
1710
+
1711
+ @font-face {
1712
+ font-family: "Biaodian Pro Sans GB";
1713
+ font-weight: bold;
1714
+ src: local("Helvetica Neue Bold"), local("Helvetica Bold"), local("Arial Bold");
1715
+ unicode-range: U+270C;
1716
+ }
1717
+
1718
+ @font-face {
1719
+ font-family: "Biaodian Pro Sans GB";
1720
+ font-style: italic;
1721
+ src: local("Helvetica Neue Italic"), local("Helvetica Oblique"), local("Arial Italic");
1722
+ unicode-range: U+270C;
1723
+ }
1724
+
1725
+ @font-face {
1726
+ font-family: "Biaodian Pro Sans GB";
1727
+ font-style: italic;
1728
+ font-weight: bold;
1729
+ src: local("Helvetica Neue Bold Italic"), local("Helvetica Bold Oblique"), local("Arial Bold Italic");
1730
+ unicode-range: U+270C;
1731
+ }
1732
+
1733
+ @font-face {
1734
+ font-family: "Biaodian Serif";
1735
+ src: local(Georgia), local("Times New Roman");
1736
+ unicode-range: U+270C;
1737
+ }
1738
+
1739
+ @font-face {
1740
+ font-family: "Biaodian Serif";
1741
+ font-weight: bold;
1742
+ src: local("Georgia Bold"), local("Times New Roman Bold");
1743
+ unicode-range: U+270C;
1744
+ }
1745
+
1746
+ @font-face {
1747
+ font-family: "Biaodian Serif";
1748
+ font-style: italic;
1749
+ src: local("Georgia Italic"), local("Times New Roman Italic");
1750
+ unicode-range: U+270C;
1751
+ }
1752
+
1753
+ @font-face {
1754
+ font-family: "Biaodian Serif";
1755
+ font-style: italic;
1756
+ font-weight: bold;
1757
+ src: local("Georgia Bold Italic"), local("Times New Roman Bold Italic");
1758
+ unicode-range: U+270C;
1759
+ }
1760
+
1761
+ @font-face {
1762
+ font-family: "Biaodian Pro Serif";
1763
+ src: local(Georgia), local("Times New Roman");
1764
+ unicode-range: U+270C;
1765
+ }
1766
+
1767
+ @font-face {
1768
+ font-family: "Biaodian Pro Serif";
1769
+ font-weight: bold;
1770
+ src: local("Georgia Bold"), local("Times New Roman Bold");
1771
+ unicode-range: U+270C;
1772
+ }
1773
+
1774
+ @font-face {
1775
+ font-family: "Biaodian Pro Serif";
1776
+ font-style: italic;
1777
+ src: local("Georgia Italic"), local("Times New Roman Italic");
1778
+ unicode-range: U+270C;
1779
+ }
1780
+
1781
+ @font-face {
1782
+ font-family: "Biaodian Pro Serif";
1783
+ font-style: italic;
1784
+ font-weight: bold;
1785
+ src: local("Georgia Bold Italic"), local("Times New Roman Bold Italic");
1786
+ unicode-range: U+270C;
1787
+ }
1788
+
1789
+ @font-face {
1790
+ font-family: "Biaodian Pro Serif CNS";
1791
+ src: local(Georgia), local("Times New Roman");
1792
+ unicode-range: U+270C;
1793
+ }
1794
+
1795
+ @font-face {
1796
+ font-family: "Biaodian Pro Serif CNS";
1797
+ font-weight: bold;
1798
+ src: local("Georgia Bold"), local("Times New Roman Bold");
1799
+ unicode-range: U+270C;
1800
+ }
1801
+
1802
+ @font-face {
1803
+ font-family: "Biaodian Pro Serif CNS";
1804
+ font-style: italic;
1805
+ src: local("Georgia Italic"), local("Times New Roman Italic");
1806
+ unicode-range: U+270C;
1807
+ }
1808
+
1809
+ @font-face {
1810
+ font-family: "Biaodian Pro Serif CNS";
1811
+ font-style: italic;
1812
+ font-weight: bold;
1813
+ src: local("Georgia Bold Italic"), local("Times New Roman Bold Italic");
1588
1814
  unicode-range: U+270C;
1589
1815
  }
1590
1816
 
1591
1817
  @font-face {
1592
1818
  font-family: "Biaodian Pro Serif GB";
1593
- src: local(lying-to-firefox);
1819
+ src: local(Georgia), local("Times New Roman");
1820
+ unicode-range: U+270C;
1821
+ }
1822
+
1823
+ @font-face {
1824
+ font-family: "Biaodian Pro Serif GB";
1825
+ font-weight: bold;
1826
+ src: local("Georgia Bold"), local("Times New Roman Bold");
1827
+ unicode-range: U+270C;
1828
+ }
1829
+
1830
+ @font-face {
1831
+ font-family: "Biaodian Pro Serif GB";
1832
+ font-style: italic;
1833
+ src: local("Georgia Italic"), local("Times New Roman Italic");
1834
+ unicode-range: U+270C;
1835
+ }
1836
+
1837
+ @font-face {
1838
+ font-family: "Biaodian Pro Serif GB";
1839
+ font-style: italic;
1840
+ font-weight: bold;
1841
+ src: local("Georgia Bold Italic"), local("Times New Roman Bold Italic");
1594
1842
  unicode-range: U+270C;
1595
1843
  }
1596
1844
 
@@ -1773,6 +2021,34 @@ jinze {
1773
2021
  unicode-range: U+02D9, U+02CA, U+02C5, U+02C7, U+02CB, U+02EA-02EB, U+31B4, U+31B5, U+31B6, U+31B7, U+030D, U+0358, U+F31B4-F31B7, U+F0061, U+F0065, U+F0069, U+F006F, U+F0075;
1774
2022
  }
1775
2023
 
2024
+ @font-face {
2025
+ font-family: "Zhuyin Heiti";
2026
+ src: local("Helvetica Neue"), local(Helvetica), local(Arial);
2027
+ unicode-range: U+270C;
2028
+ }
2029
+
2030
+ @font-face {
2031
+ font-family: "Zhuyin Heiti";
2032
+ font-weight: bold;
2033
+ src: local("Helvetica Neue Bold"), local("Helvetica Bold"), local("Arial Bold");
2034
+ unicode-range: U+270C;
2035
+ }
2036
+
2037
+ @font-face {
2038
+ font-family: "Zhuyin Heiti";
2039
+ font-style: italic;
2040
+ src: local("Helvetica Neue Italic"), local("Helvetica Oblique"), local("Arial Italic");
2041
+ unicode-range: U+270C;
2042
+ }
2043
+
2044
+ @font-face {
2045
+ font-family: "Zhuyin Heiti";
2046
+ font-style: italic;
2047
+ font-weight: bold;
2048
+ src: local("Helvetica Neue Bold Italic"), local("Helvetica Bold Oblique"), local("Arial Bold Italic");
2049
+ unicode-range: U+270C;
2050
+ }
2051
+
1776
2052
  /**
1777
2053
  * Romanisation (checked tone ligature [陽入韻連字])
1778
2054
  */
@@ -2014,16 +2290,16 @@ pre:lang(ja) {
2014
2290
  }
2015
2291
 
2016
2292
  html,
2017
- ruby ru[zhuyin] zhuyin,
2018
- ruby ru[zhuyin] zhuyin diao,
2019
- hruby ru[zhuyin] zhuyin,
2020
- hruby ru[zhuyin] zhuyin diao,
2293
+ ruby h-ru[zhuyin] h-zhuyin,
2294
+ ruby h-ru[zhuyin] h-zhuyin h-diao,
2295
+ h-ruby h-ru[zhuyin] h-zhuyin,
2296
+ h-ruby h-ru[zhuyin] h-zhuyin h-diao,
2021
2297
  ruby.romanization rt,
2022
- ruby ru[annotation]:before,
2023
- hruby.romanization rt,
2024
- hruby ru[annotation]:before,
2025
- .no-unicoderange char.biaodian.liga,
2026
- .no-unicoderange char.biaodian[unicode="b7"] {
2298
+ ruby h-ru[annotation]:before,
2299
+ h-ruby.romanization rt,
2300
+ h-ruby h-ru[annotation]:before,
2301
+ .no-unicoderange h-char.biaodian.liga,
2302
+ .no-unicoderange h-char.biaodian[unicode="b7"] {
2027
2303
  -moz-font-feature-settings: "liga";
2028
2304
  -ms-font-feature-settings: "liga";
2029
2305
  -webkit-font-feature-settings: "liga";
@@ -2035,33 +2311,39 @@ var {
2035
2311
  font-style: inherit;
2036
2312
  }
2037
2313
 
2038
- ruby ru[zhuyin] zhuyin diao,
2039
- hruby ru[zhuyin] zhuyin diao {
2314
+ ruby h-ru[zhuyin] h-zhuyin h-diao,
2315
+ h-ruby h-ru[zhuyin] h-zhuyin h-diao {
2040
2316
  font-family: "Zhuyin Kaiti", cursive, serif;
2041
2317
  }
2042
2318
  ruby.romanization rt,
2043
- ruby ru[annotation]:before,
2044
- hruby.romanization rt,
2045
- hruby ru[annotation]:before {
2319
+ ruby h-ru[annotation]:before,
2320
+ h-ruby.romanization rt,
2321
+ h-ruby h-ru[annotation]:before {
2046
2322
  font-family: "Romanization Sans", "Helvetica Neue", Helvetica, Arial, "Han Heiti", sans-serif;
2047
2323
  }
2048
2324
 
2049
- /* Global
2050
- @mixin ========================================================================= */
2325
+ /* Global
2326
+ -------- */
2051
2327
  .no-kaiti i,
2052
2328
  .no-kaiti var {
2053
2329
  padding-bottom: .05em;
2054
2330
  border-bottom: 3px double lightgrey;
2055
2331
  }
2056
2332
 
2057
- /* Section-wise arrangement
2058
- @mixin ========================================================================= */
2333
+ /* Section-wise arrangement
2334
+ -------------------------- */
2059
2335
  /**
2060
2336
  * Well-knit sections for articles
2061
2337
  */
2062
2338
  article {
2063
2339
  line-height: 1.7;
2064
2340
  }
2341
+ article {
2342
+ -moz-hyphens: auto;
2343
+ -ms-hyphens: auto;
2344
+ -webkit-hyphens: auto;
2345
+ hyphens: auto;
2346
+ }
2065
2347
  article p,
2066
2348
  article li {
2067
2349
  text-align: justify;
@@ -2199,16 +2481,16 @@ article blockquote blockquote {
2199
2481
  /**
2200
2482
  * Sectional counter for articles
2201
2483
  */
2202
- /* Line composition
2203
- @mixin ========================================================================= */
2484
+ /* Line composition
2485
+ ------------------ */
2204
2486
  /**
2205
2487
  * Customised emphasis mark (着重號)
2206
2488
  */
2207
2489
  /**
2208
2490
  * Basic Biaodian correction for Firefox
2209
2491
  */
2210
- .no-unicoderange char.biaodian.liga,
2211
- .no-unicoderange char.biaodian[unicode="b7"] {
2492
+ .no-unicoderange h-char.biaodian.liga,
2493
+ .no-unicoderange h-char.biaodian[unicode="b7"] {
2212
2494
  font-family: "Biaodian Basic", "Han Heiti";
2213
2495
  }
2214
2496
 
@@ -2218,66 +2500,214 @@ article blockquote blockquote {
2218
2500
  * More discussion at:
2219
2501
  * https://github.com/ethantw/Han/issues/40
2220
2502
  */
2221
- hws {
2503
+ h-hws,
2504
+ h-hws[hidden] {
2505
+ display: inline;
2506
+ visibility: hidden;
2507
+ font: .89em Arial;
2508
+ }
2509
+ code h-hws,
2510
+ kbd h-hws,
2511
+ samp h-hws,
2512
+ pre h-hws,
2513
+ ol > h-hws,
2514
+ ul > h-hws,
2515
+ table > h-hws,
2516
+ thead > h-hws,
2517
+ tbody > h-hws,
2518
+ tfoot > h-hws,
2519
+ tr > h-hws,
2520
+ code h-hws[hidden],
2521
+ kbd h-hws[hidden],
2522
+ samp h-hws[hidden],
2523
+ pre h-hws[hidden],
2524
+ ol > h-hws[hidden],
2525
+ ul > h-hws[hidden],
2526
+ table > h-hws[hidden],
2527
+ thead > h-hws[hidden],
2528
+ tbody > h-hws[hidden],
2529
+ tfoot > h-hws[hidden],
2530
+ tr > h-hws[hidden] {
2531
+ display: none;
2532
+ }
2533
+
2534
+ @font-face {
2535
+ src: url('<%= font_path('han-space.woff') %>?v=<%= v %>') format("woff"), url('<%= font_path('han-space.otf') %>?v=<%= v %>') format("opentype");
2536
+ font-family: "Han Space";
2537
+ unicode-range: U+20;
2538
+ }
2539
+
2540
+ .han-space h-hangable:lang(zh-Hans),
2541
+ .han-space h-hangable:lang(zh-CN),
2542
+ .han-space h-hangable:lang(ja) {
2543
+ position: relative;
2544
+ display: inline;
2545
+ }
2546
+ .han-space h-hangable:lang(zh-Hans) h-char.biaodian.close h-cs,
2547
+ .han-space h-hangable:lang(zh-CN) h-char.biaodian.close h-cs,
2548
+ .han-space h-hangable:lang(ja) h-char.biaodian.close h-cs {
2549
+ display: none;
2550
+ }
2551
+ .han-space h-hangable:lang(zh-Hans) > h-cs,
2552
+ .han-space h-hangable:lang(zh-CN) > h-cs,
2553
+ .han-space h-hangable:lang(ja) > h-cs {
2554
+ position: relative;
2555
+ display: inline !important;
2556
+ visibility: visible;
2557
+ font: inherit;
2558
+ }
2559
+ .han-space h-hangable:lang(zh-Hans) > h-cs h-inner,
2560
+ .han-space h-hangable:lang(zh-Hans) > h-cs h-inner[hidden],
2561
+ .han-space h-hangable:lang(zh-CN) > h-cs h-inner,
2562
+ .han-space h-hangable:lang(zh-CN) > h-cs h-inner[hidden],
2563
+ .han-space h-hangable:lang(ja) > h-cs h-inner,
2564
+ .han-space h-hangable:lang(ja) > h-cs h-inner[hidden] {
2222
2565
  display: inline;
2223
2566
  visibility: hidden;
2224
- font-family: Arial, sans-serif !important;
2225
- font-size: .89em;
2226
- }
2227
- code hws,
2228
- kbd hws,
2229
- samp hws,
2230
- pre hws,
2231
- ol > hws,
2232
- ul > hws,
2233
- table > hws,
2234
- thead > hws,
2235
- tbody > hws,
2236
- tfoot > hws,
2237
- tr > hws {
2567
+ font: 1em "Han Space";
2568
+ }
2569
+ .han-space h-hangable:lang(zh-Hans) > h-cs:after,
2570
+ .han-space h-hangable:lang(zh-CN) > h-cs:after,
2571
+ .han-space h-hangable:lang(ja) > h-cs:after {
2572
+ -moz-text-emphasis: none;
2573
+ -webkit-text-emphasis: none;
2574
+ text-emphasis: none;
2575
+ font-style: normal;
2576
+ font-weight: normal;
2577
+ line-height: normal;
2578
+ text-decoration: none;
2579
+ text-indent: 0;
2580
+ position: absolute;
2581
+ left: 0;
2582
+ top: 0;
2583
+ display: inline-block;
2584
+ content: attr(biaodian);
2585
+ line-height: 1.05;
2586
+ }
2587
+ ruby .han-space h-hangable:lang(zh-Hans) > h-cs:after,
2588
+ h-ru .han-space h-hangable:lang(zh-Hans) > h-cs:after,
2589
+ ruby .han-space h-hangable:lang(zh-CN) > h-cs:after,
2590
+ h-ru .han-space h-hangable:lang(zh-CN) > h-cs:after,
2591
+ ruby .han-space h-hangable:lang(ja) > h-cs:after,
2592
+ h-ru .han-space h-hangable:lang(ja) > h-cs:after {
2593
+ position: relative;
2594
+ }
2595
+
2596
+ .han-space h-hangable:lang(zh-Hans) h-char.biaodian.end:not(.close),
2597
+ .han-space h-hangable:lang(zh-CN) h-char.biaodian.end:not(.close),
2598
+ .han-space h-hangable:lang(ja) h-char.biaodian.end:not(.close) {
2599
+ position: absolute;
2600
+ color: transparent;
2601
+ font: 0/0 hidden-text;
2602
+ }
2603
+
2604
+ .han-space.pseudo-element-clipboard h-hangable:lang(zh-Hans) h-char.biaodian.end:not(.close),
2605
+ .han-space.pseudo-element-clipboard h-hangable:lang(zh-CN) h-char.biaodian.end:not(.close),
2606
+ .han-space.pseudo-element-clipboard h-hangable:lang(ja) h-char.biaodian.end:not(.close) {
2238
2607
  display: none;
2239
2608
  }
2240
2609
 
2241
2610
  /**
2242
- * Consecutive CJK Biaodian positioning (CJK標點擠壓)
2611
+ * CJK Biaodian compression (CJK標點擠壓)
2243
2612
  */
2244
- char_group .open:not(:last-child),
2245
- char_group .close:not(:last-child),
2246
- char_group [unicode="3001"]:not(:last-child),
2247
- char_group [unicode="3002"]:not(:last-child),
2248
- char_group [unicode="ff0c"]:not(:last-child),
2249
- char_group [unicode="ff08"]:not(:last-child) {
2250
- letter-spacing: -.5em;
2613
+ h-cs,
2614
+ h-cs[hidden] {
2615
+ display: none;
2616
+ visibility: hidden;
2617
+ font: .825em Courier;
2618
+ letter-spacing: 0;
2619
+ white-space: normal;
2251
2620
  }
2252
2621
 
2253
- char_group [unicode="b7"] + [unicode="300c"],
2254
- char_group [unicode="b7"] + [unicode="300e"],
2255
- char_group [unicode="30fb"] + [unicode="300c"],
2256
- char_group [unicode="30fb"] + [unicode="300e"] {
2622
+ h-char.biaodian.open > h-inner {
2257
2623
  margin-left: -.5em;
2258
2624
  }
2625
+ h-char.biaodian.close > h-inner,
2626
+ h-char.biaodian[unicode="3001"] > h-inner,
2627
+ h-char.biaodian[unicode="3002"] > h-inner,
2628
+ h-char.biaodian[unicode="ff0c"] > h-inner,
2629
+ h-char.biaodian[unicode="ff0e"] > h-inner {
2630
+ letter-spacing: -.5em;
2631
+ }
2632
+ h-char.biaodian.open > h-cs,
2633
+ h-char.biaodian.close > h-cs,
2634
+ h-char.biaodian[unicode="3001"] > h-cs,
2635
+ h-char.biaodian[unicode="3002"] > h-cs,
2636
+ h-char.biaodian[unicode="ff0c"] > h-cs,
2637
+ h-char.biaodian[unicode="ff0e"] > h-cs {
2638
+ display: inline;
2639
+ }
2640
+ h-char.biaodian[unicode="3001"]:lang(zh-Hant) > h-inner,
2641
+ h-char.biaodian[unicode="3001"]:lang(zh-TW) > h-inner,
2642
+ h-char.biaodian[unicode="3001"]:lang(zh-HK) > h-inner,
2643
+ h-char.biaodian[unicode="3002"]:lang(zh-Hant) > h-inner,
2644
+ h-char.biaodian[unicode="3002"]:lang(zh-TW) > h-inner,
2645
+ h-char.biaodian[unicode="3002"]:lang(zh-HK) > h-inner,
2646
+ h-char.biaodian[unicode="ff0c"]:lang(zh-Hant) > h-inner,
2647
+ h-char.biaodian[unicode="ff0c"]:lang(zh-TW) > h-inner,
2648
+ h-char.biaodian[unicode="ff0c"]:lang(zh-HK) > h-inner,
2649
+ h-char.biaodian[unicode="ff0e"]:lang(zh-Hant) > h-inner,
2650
+ h-char.biaodian[unicode="ff0e"]:lang(zh-TW) > h-inner,
2651
+ h-char.biaodian[unicode="ff0e"]:lang(zh-HK) > h-inner {
2652
+ letter-spacing: inherit;
2653
+ }
2654
+ h-char.biaodian[unicode="3001"]:lang(zh-Hant) > h-cs,
2655
+ h-char.biaodian[unicode="3001"]:lang(zh-TW) > h-cs,
2656
+ h-char.biaodian[unicode="3001"]:lang(zh-HK) > h-cs,
2657
+ h-char.biaodian[unicode="3002"]:lang(zh-Hant) > h-cs,
2658
+ h-char.biaodian[unicode="3002"]:lang(zh-TW) > h-cs,
2659
+ h-char.biaodian[unicode="3002"]:lang(zh-HK) > h-cs,
2660
+ h-char.biaodian[unicode="ff0c"]:lang(zh-Hant) > h-cs,
2661
+ h-char.biaodian[unicode="ff0c"]:lang(zh-TW) > h-cs,
2662
+ h-char.biaodian[unicode="ff0c"]:lang(zh-HK) > h-cs,
2663
+ h-char.biaodian[unicode="ff0e"]:lang(zh-Hant) > h-cs,
2664
+ h-char.biaodian[unicode="ff0e"]:lang(zh-TW) > h-cs,
2665
+ h-char.biaodian[unicode="ff0e"]:lang(zh-HK) > h-cs {
2666
+ display: none;
2667
+ }
2259
2668
 
2260
- char_group .liga + [unicode="300c"],
2261
- char_group .liga + [unicode="300e"] {
2262
- margin-left: -.25em;
2669
+ h-char-group .open + .open h-cs,
2670
+ h-char-group .end:not(:last-child) h-cs {
2671
+ display: none;
2672
+ }
2673
+ h-char-group [unicode="3001"]:lang(zh-Hant) + .open h-cs,
2674
+ h-char-group [unicode="3001"]:lang(zh-TW) + .open h-cs,
2675
+ h-char-group [unicode="3001"]:lang(zh-HK) + .open h-cs,
2676
+ h-char-group [unicode="3002"]:lang(zh-Hant) + .open h-cs,
2677
+ h-char-group [unicode="3002"]:lang(zh-TW) + .open h-cs,
2678
+ h-char-group [unicode="3002"]:lang(zh-HK) + .open h-cs,
2679
+ h-char-group [unicode="ff0c"]:lang(zh-Hant) + .open h-cs,
2680
+ h-char-group [unicode="ff0c"]:lang(zh-TW) + .open h-cs,
2681
+ h-char-group [unicode="ff0c"]:lang(zh-HK) + .open h-cs,
2682
+ h-char-group [unicode="ff0e"]:lang(zh-Hant) + .open h-cs,
2683
+ h-char-group [unicode="ff0e"]:lang(zh-TW) + .open h-cs,
2684
+ h-char-group [unicode="ff0e"]:lang(zh-HK) + .open h-cs {
2685
+ display: none;
2686
+ }
2687
+ h-char-group [unicode="b7"]:not(:last-child),
2688
+ h-char-group [unicode="30fb"]:not(:last-child) {
2689
+ letter-spacing: -.5em;
2690
+ }
2691
+ h-char-group .liga:not(:last-child) {
2692
+ margin-right: -.25em;
2263
2693
  }
2264
2694
 
2265
2695
  /**
2266
2696
  * The ‘Display-As’ feature for presentational characters
2267
2697
  */
2268
- char[display-as] {
2698
+ h-char[display-as] {
2269
2699
  position: relative;
2270
2700
  display: inline-block;
2271
2701
  }
2272
- char[display-as] inner {
2702
+ h-char[display-as] h-inner {
2273
2703
  color: transparent;
2274
2704
  }
2275
- char[display-as]:after {
2705
+ h-char[display-as]:after {
2276
2706
  position: absolute;
2277
2707
  left: 0;
2278
2708
  display: inline-block;
2279
2709
  content: attr(display-as);
2280
2710
  }
2281
- char[display-as].comb-liga:after {
2711
+ h-char[display-as].comb-liga:after {
2282
2712
  font-family: "Romanization Sans", "Zhuyin Kaiti";
2283
2713
  }