Example #1
0
 void ProcCSS()
 {
     foreach (TextItem item in css)
     {
         CSSUtil.EditInSegment(ref item.data, ".ae_draw_out{text-indent:1.5em;}", ToString());
         Log.log("[Info ]Added style to " + item.fullName);
     }
 }
 void ProcCSS()
 {
     foreach (TextItem item in css)
     {
         CSSUtil.EditInSegment(ref item.data, ".ae_center{text-indent:0!important;text-align:center!important;}", ToString());
         Log.log("[Info ]Added style to " + item.fullName);
     }
 }
Example #3
0
        public ProcCSS(TextItem css, FootnoteAdaptOption option)
        {
            switch (option)
            {
            case FootnoteAdaptOption.Main:
            {
                string c = "@media amzn-kf8{\naside{display:none;}\n.ae_note_inside{page-break-after:always;}\n}\n.ae_note_inside{text-indent:0;}";
                CSSUtil.EditInSegment(ref css.data, c, "AeroEpubProcesser.FootnoteAdapter");
            }
            break;

            case FootnoteAdaptOption.Main_Duokan:
            {
                string c = "@media amzn-kf8{\naside{display:none;}\n.duokan-footnote-item{page-break-after:always;}\n}";
                CSSUtil.EditInSegment(ref css.data, c, "AeroEpubProcesser.FootnoteAdapter");
            }
            break;
            }
            Log.log("[Info ]Added style to " + css.fullName);
        }
 void ProcCSS(TextItem item)
 {
     CSSUtil.EditInSegment(ref item.data, "p{line-height:1.5;margin-top:0;margin-bottom:0;}", ToString());
     Log.log("[Info ]Added style to " + item.fullName);
 }