<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">The default for Text.textFormat is
      Text.AutoText which supports the HTML text. Also, I inlined the
      css so it was not external. <br>
      <br>
      Gary<br>
      <br>
      <br>
      On 08/26/2013 11:48 AM, &#1050;&#1086;&#1089;&#1090;&#1103; &#1052;&#1072;&#1089;&#1083;&#1102;&#1082; wrote:<br>
    </div>
    <blockquote
cite="mid:CAPOzG3=HvpNe-ZUamnXSVWGRA-=vB5HYCz60NDEtBo677KQ_0A@mail.gmail.com"
      type="cite">
      <p dir="ltr">You need to set explicitly Text.textFormat to
        Text.RichText. And another reason why it is not styled is: *.css
        file can not be loaded (as webmedic mention here you would set
        full path to it)&nbsp; or style sheet contain constructions that can
        not be resolved by Qt engine. Default BibleTime template contain
        such constructions...<br>
      </p>
      <p dir="ltr">I get it working in my first qml prototype
        mini_repository/platforms/qml/btmini/main.qml with modified
        template file ./src/display-templates/Basic-Mini.tmpl</p>
      <div class="gmail_quote">26.08.2013 21:57 &#1087;&#1086;&#1083;&#1100;&#1079;&#1086;&#1074;&#1072;&#1090;&#1077;&#1083;&#1100; "Gary
        Holmlund" &lt;<a moz-do-not-send="true"
          href="mailto:gary.holmlund@gmail.com">gary.holmlund@gmail.com</a>&gt;
        &#1085;&#1072;&#1087;&#1080;&#1089;&#1072;&#1083;:<br type="attribution">
        <blockquote class="gmail_quote" style="margin:0 0 0
          .8ex;border-left:1px #ccc solid;padding-left:1ex">
          <div text="#000000" bgcolor="#FFFFFF">
            <div><br>
              The QML "Text" object supports HTML 3.2 but no css. I did
              try out using "Text instead of "WebView" in the Mobile
              code. As expected, I did see the text, but it is no
              formatted in any way by the css. <br>
              <br>
              Gary<br>
              <br>
              On 8/26/2013 7:30 AM, webmedic wrote:<br>
            </div>
            <blockquote type="cite">
              <p>I have been able to load external resources by giving
                the entire path to the local file. </p>
              <div class="gmail_quote">On Aug 26, 2013 2:52 AM, "&#1050;&#1086;&#1089;&#1090;&#1103;
                &#1052;&#1072;&#1089;&#1083;&#1102;&#1082;" &lt;<a moz-do-not-send="true"
                  href="mailto:kostyamaslyuk@gmail.com" target="_blank">kostyamaslyuk@gmail.com</a>&gt;

                wrote:<br type="attribution">
                <blockquote class="gmail_quote" style="margin:0 0 0
                  .8ex;border-left:1px #ccc solid;padding-left:1ex">
                  <div dir="ltr">
                    <div>Sorry for confusion. Qt call html format they
                      support as RichText as opposed to PlainText
                      format. So i'm not about RTF but HTML that Qt
                      supports internally.<br>
                      <br>
                    </div>
                    I would mention again that i did not managed to load
                    external resources with it (QTextDocument: neither
                    css or images) and it does not support some css
                    features. There is already made BibleTime template
                    that works with Qt-Html at Mini repository.<br>
                  </div>
                  <div class="gmail_extra"><br>
                    <br>
                    <div class="gmail_quote">2013/8/26 Greg Hellings <span
                        dir="ltr">&lt;<a moz-do-not-send="true"
                          href="mailto:greg.hellings@gmail.com"
                          target="_blank">greg.hellings@gmail.com</a>&gt;</span><br>
                      <blockquote class="gmail_quote" style="margin:0 0
                        0 .8ex;border-left:1px #ccc
                        solid;padding-left:1ex">
                        <div dir="ltr"><br>
                          <div class="gmail_extra"><br>
                            <br>
                            <div class="gmail_quote">
                              <div>On Sun, Aug 25, 2013 at 11:42 PM,
                                Gary Holmlund <span dir="ltr">&lt;<a
                                    moz-do-not-send="true"
                                    href="mailto:gary.holmlund@gmail.com"
                                    target="_blank">gary.holmlund@gmail.com</a>&gt;</span>
                                wrote:<br>
                                <blockquote class="gmail_quote"
                                  style="margin:0 0 0
                                  .8ex;border-left:1px #ccc
                                  solid;padding-left:1ex">
                                  <div bgcolor="#FFFFFF" text="#000000">
                                    <div>&#1050;&#1086;&#1089;&#1090;&#1103;,<br>
                                      <br>
                                      To use RichText we would have to
                                      have a different renderer. I am
                                      not sure I want to make this now.
                                      I still hope that Qt 5.2 will
                                      support WebKit on Android. You
                                      have had a rich text renderer in
                                      the past for Mini. Was it hard to
                                      make? We can do it at a later date
                                      if we decide it is the only
                                      choice.<br>
                                    </div>
                                  </div>
                                </blockquote>
                                <div><br>
                                </div>
                              </div>
                              <div>The engine supports RTF output, FYI.
                                FMT_RTF should get you that. It's only
                                used in BibleCS (aka The SWORD Project
                                for Windows). So creating the renderer
                                shouldn't be /too/ difficult.</div>
                              <span><font color="#888888">
                                  <div><br>
                                  </div>
                                  <div>--Greg</div>
                                </font></span>
                              <div>
                                <div>
                                  <div>&nbsp;</div>
                                  <blockquote class="gmail_quote"
                                    style="margin:0 0 0
                                    .8ex;border-left:1px #ccc
                                    solid;padding-left:1ex">
                                    <div bgcolor="#FFFFFF"
                                      text="#000000">
                                      <div> <br>
                                        Developing on Qt 4.8 does not
                                        seem like a good choice since
                                        the QML code (Quick 1.0) is
                                        depreciated.<br>
                                        <br>
                                        I think that developing Quick 2
                                        on desktops is the best choice
                                        for now.<br>
                                        <br>
                                        I am going to look at a single
                                        window mode for smaller
                                        displays. If you wish to work on
                                        the install manager, I will
                                        avoid changes in that area.<span><font
                                            color="#888888"><br>
                                            <br>
                                            Gary</font></span>
                                        <div>
                                          <div><br>
                                            <br>
                                            &nbsp;<br>
                                            On 08/23/2013 05:06 AM,
                                            &#1050;&#1086;&#1089;&#1090;&#1103; &#1052;&#1072;&#1089;&#1083;&#1102;&#1082; wrote:<br>
                                          </div>
                                        </div>
                                      </div>
                                      <div>
                                        <div>
                                          <blockquote type="cite">
                                            <div dir="ltr">
                                              <div>It think we would use
                                                Qt RichText for a while.
                                                It is used in Mini for a
                                                long time and WebKit is
                                                an runtime option on
                                                platforms that supports
                                                it. I know that it is
                                                not full functional but
                                                it was enough.<br>
                                              </div>
                                              <div>Or develop on
                                                desktops, i simply do
                                                not know what a features
                                                supply WebKit that Qt
                                                RichText haven't (except
                                                images, proper css
                                                handling).<br>
                                              </div>
                                              <div><br>
                                              </div>
                                              Necessitas project that
                                              support Qt 4.8.2 on
                                              Android have WebKit
                                              support but have QtQuick1
                                              modules only.<br>
                                            </div>
                                            <div class="gmail_extra"><br>
                                              <br>
                                              <div class="gmail_quote">2013/8/23

                                                Gary Holmlund <span
                                                  dir="ltr">&lt;<a
                                                    moz-do-not-send="true"
href="mailto:gary.holmlund@gmail.com" target="_blank">gary.holmlund@gmail.com</a>&gt;</span><br>
                                                <blockquote
                                                  class="gmail_quote"
                                                  style="margin:0 0 0
                                                  .8ex;border-left:1px
                                                  #ccc
                                                  solid;padding-left:1ex">
                                                  <div>On 08/22/2013
                                                    07:25 AM, &#1050;&#1086;&#1089;&#1090;&#1103;
                                                    &#1052;&#1072;&#1089;&#1083;&#1102;&#1082; wrote:<br>
                                                    <blockquote
                                                      class="gmail_quote"
                                                      style="margin:0 0
                                                      0
                                                      .8ex;border-left:1px
                                                      #ccc
                                                      solid;padding-left:1ex">
                                                      I have tried
                                                      Mobile on Android,
                                                      but without WebKit
                                                      support in Qt, it
                                                      does not makes
                                                      sense (fails
                                                      loading qml file).
                                                      I also fixed one
                                                      issue, related to
                                                      comparison between
                                                      translated and
                                                      non-translated
                                                      strings.<br>
                                                      <br>
                                                      Related to WebKit
                                                      support on
                                                      Android, <a
                                                        moz-do-not-send="true"
href="https://bugreports.qt-project.org/browse/QTBUG-32093"
                                                        target="_blank">https://bugreports.qt-project.org/browse/QTBUG-32093</a><br>
                                                      <br>
                                                    </blockquote>
                                                  </div>
                                                  I had missed the fact
                                                  that WebView did not
                                                  come with the Qt 5.1
                                                  Android port. I can
                                                  see this is on the
                                                  list they want to do
                                                  for the next Qt
                                                  release, but it is not
                                                  guaranteed to be in Qt
                                                  5.2<br>
                                                  <br>
                                                  I don't know that we
                                                  have a good choice
                                                  now. We could:<br>
                                                  <br>
                                                  &nbsp;1. Continue on
                                                  developing a QML
                                                  version on linux or
                                                  windows and hope the
                                                  Qt 5.2 (or later) has
                                                  the WebView for
                                                  Android. &nbsp;The QML
                                                  "Text" type supports
                                                  html and we may be
                                                  able to use it in the
                                                  sort term and make an
                                                  Android version.<br>
                                                  <br>
                                                  &nbsp;2. Wait on the QML
                                                  version and put more
                                                  effort into the widget
                                                  version of Mini.<br>
                                                  <br>
                                                  What are your
                                                  thoughts?
                                                  <div>
                                                    <div><br>
                                                      <br>
                                                      Gary<br>
                                                      <br>
                                                      <br>
                                                      <br>
_______________________________________________<br>
                                                      bt-devel mailing
                                                      list<br>
                                                      <a
                                                        moz-do-not-send="true"
href="mailto:bt-devel@crosswire.org" target="_blank">bt-devel@crosswire.org</a><br>
                                                      <a
                                                        moz-do-not-send="true"
href="http://www.crosswire.org/mailman/listinfo/bt-devel"
                                                        target="_blank">http://www.crosswire.org/mailman/listinfo/bt-devel</a><br>
                                                    </div>
                                                  </div>
                                                </blockquote>
                                              </div>
                                              <br>
                                            </div>
                                            <br>
                                            <fieldset></fieldset>
                                            <br>
                                            <pre>_______________________________________________
bt-devel mailing list
<a moz-do-not-send="true" href="mailto:bt-devel@crosswire.org" target="_blank">bt-devel@crosswire.org</a>
<a moz-do-not-send="true" href="http://www.crosswire.org/mailman/listinfo/bt-devel" target="_blank">http://www.crosswire.org/mailman/listinfo/bt-devel</a>
</pre>
                                          </blockquote>
                                          <br>
                                        </div>
                                      </div>
                                    </div>
                                    <br>
_______________________________________________<br>
                                    bt-devel mailing list<br>
                                    <a moz-do-not-send="true"
                                      href="mailto:bt-devel@crosswire.org"
                                      target="_blank">bt-devel@crosswire.org</a><br>
                                    <a moz-do-not-send="true"
                                      href="http://www.crosswire.org/mailman/listinfo/bt-devel"
                                      target="_blank">http://www.crosswire.org/mailman/listinfo/bt-devel</a><br>
                                    <br>
                                  </blockquote>
                                </div>
                              </div>
                            </div>
                            <br>
                          </div>
                        </div>
                        <br>
                        _______________________________________________<br>
                        bt-devel mailing list<br>
                        <a moz-do-not-send="true"
                          href="mailto:bt-devel@crosswire.org"
                          target="_blank">bt-devel@crosswire.org</a><br>
                        <a moz-do-not-send="true"
                          href="http://www.crosswire.org/mailman/listinfo/bt-devel"
                          target="_blank">http://www.crosswire.org/mailman/listinfo/bt-devel</a><br>
                        <br>
                      </blockquote>
                    </div>
                    <br>
                  </div>
                  <br>
                  _______________________________________________<br>
                  bt-devel mailing list<br>
                  <a moz-do-not-send="true"
                    href="mailto:bt-devel@crosswire.org" target="_blank">bt-devel@crosswire.org</a><br>
                  <a moz-do-not-send="true"
                    href="http://www.crosswire.org/mailman/listinfo/bt-devel"
                    target="_blank">http://www.crosswire.org/mailman/listinfo/bt-devel</a><br>
                  <br>
                </blockquote>
              </div>
              <br>
              <fieldset></fieldset>
              <br>
              <pre>_______________________________________________
bt-devel mailing list
<a moz-do-not-send="true" href="mailto:bt-devel@crosswire.org" target="_blank">bt-devel@crosswire.org</a>
<a moz-do-not-send="true" href="http://www.crosswire.org/mailman/listinfo/bt-devel" target="_blank">http://www.crosswire.org/mailman/listinfo/bt-devel</a>
</pre>
            </blockquote>
            <br>
          </div>
          <br>
          _______________________________________________<br>
          bt-devel mailing list<br>
          <a moz-do-not-send="true" href="mailto:bt-devel@crosswire.org">bt-devel@crosswire.org</a><br>
          <a moz-do-not-send="true"
            href="http://www.crosswire.org/mailman/listinfo/bt-devel"
            target="_blank">http://www.crosswire.org/mailman/listinfo/bt-devel</a><br>
          <br>
        </blockquote>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
bt-devel mailing list
<a class="moz-txt-link-abbreviated" href="mailto:bt-devel@crosswire.org">bt-devel@crosswire.org</a>
<a class="moz-txt-link-freetext" href="http://www.crosswire.org/mailman/listinfo/bt-devel">http://www.crosswire.org/mailman/listinfo/bt-devel</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>