CINXE.COM

Entry formatting problems - Dictionary App Builder - SIL Language Software Community

<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>Entry formatting problems - Dictionary App Builder - SIL Language Software Community</title> <meta name="description" content="I’m trying to track down some entry formatting problems in DAB. I have exported my database from FieldWorks as an XHTML file, and one entry appears like this: When I build the app, the entry appears like this: Ther&amp;hellip;"> <meta name="generator" content="Discourse 3.4.0.beta3-dev - https://github.com/discourse/discourse version 5177aef37d87ea694053ecd9ddea41b471184dd4"> <link rel="icon" type="image/png" href="https://community.software.sil.org/uploads/default/optimized/2X/5/5f6b6cdfc52887a89db2e2d67fee1915a44ae53f_2_32x32.png"> <link rel="apple-touch-icon" type="image/png" href="https://community.software.sil.org/uploads/default/optimized/2X/a/ab2c98ffee8e8d75bc36c67abcb683f05518925b_2_180x180.png"> <meta name="theme-color" media="all" content="#800493"> <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, user-scalable=yes, viewport-fit=cover"> <link rel="canonical" href="https://community.software.sil.org/t/entry-formatting-problems/9089" /> <link rel="search" type="application/opensearchdescription+xml" href="https://community.software.sil.org/opensearch.xml" title="SIL Language Software Community Search"> <link href="/stylesheets/color_definitions_software-sil-org_2_2_55468f8b1ac7a62d9880724bb67e11d6002e3c28.css?__ws=community.software.sil.org" media="all" rel="stylesheet" class="light-scheme"/> <link href="/stylesheets/desktop_b34611466876f3b6e817ec00274e2189bc76c515.css?__ws=community.software.sil.org" media="all" rel="stylesheet" data-target="desktop" /> <link href="/stylesheets/checklist_b34611466876f3b6e817ec00274e2189bc76c515.css?__ws=community.software.sil.org" media="all" rel="stylesheet" data-target="checklist" /> <link href="/stylesheets/discourse-details_b34611466876f3b6e817ec00274e2189bc76c515.css?__ws=community.software.sil.org" media="all" rel="stylesheet" data-target="discourse-details" /> <link href="/stylesheets/discourse-feature-voting_b34611466876f3b6e817ec00274e2189bc76c515.css?__ws=community.software.sil.org" media="all" rel="stylesheet" data-target="discourse-feature-voting" /> <link href="/stylesheets/discourse-lazy-videos_b34611466876f3b6e817ec00274e2189bc76c515.css?__ws=community.software.sil.org" media="all" rel="stylesheet" data-target="discourse-lazy-videos" /> <link href="/stylesheets/discourse-local-dates_b34611466876f3b6e817ec00274e2189bc76c515.css?__ws=community.software.sil.org" media="all" rel="stylesheet" data-target="discourse-local-dates" /> <link href="/stylesheets/discourse-narrative-bot_b34611466876f3b6e817ec00274e2189bc76c515.css?__ws=community.software.sil.org" media="all" rel="stylesheet" data-target="discourse-narrative-bot" /> <link href="/stylesheets/discourse-presence_b34611466876f3b6e817ec00274e2189bc76c515.css?__ws=community.software.sil.org" media="all" rel="stylesheet" data-target="discourse-presence" /> <link href="/stylesheets/discourse-solved_b34611466876f3b6e817ec00274e2189bc76c515.css?__ws=community.software.sil.org" media="all" rel="stylesheet" data-target="discourse-solved" /> <link href="/stylesheets/docker_manager_b34611466876f3b6e817ec00274e2189bc76c515.css?__ws=community.software.sil.org" media="all" rel="stylesheet" data-target="docker_manager" /> <link href="/stylesheets/footnote_b34611466876f3b6e817ec00274e2189bc76c515.css?__ws=community.software.sil.org" media="all" rel="stylesheet" data-target="footnote" /> <link href="/stylesheets/poll_b34611466876f3b6e817ec00274e2189bc76c515.css?__ws=community.software.sil.org" media="all" rel="stylesheet" data-target="poll" /> <link href="/stylesheets/spoiler-alert_b34611466876f3b6e817ec00274e2189bc76c515.css?__ws=community.software.sil.org" media="all" rel="stylesheet" data-target="spoiler-alert" /> <link href="/stylesheets/discourse-feature-voting_desktop_b34611466876f3b6e817ec00274e2189bc76c515.css?__ws=community.software.sil.org" media="all" rel="stylesheet" data-target="discourse-feature-voting_desktop" /> <link href="/stylesheets/poll_desktop_b34611466876f3b6e817ec00274e2189bc76c515.css?__ws=community.software.sil.org" media="all" rel="stylesheet" data-target="poll_desktop" /> <link href="/stylesheets/desktop_theme_2_e5008d28eac06ba4ea3e0301cb42cb5f3ae5a20e.css?__ws=community.software.sil.org" media="all" rel="stylesheet" data-target="desktop_theme" data-theme-id="2" data-theme-name="sil"/> <link rel="alternate nofollow" type="application/rss+xml" title="RSS feed of &#39;Entry formatting problems&#39;" href="https://community.software.sil.org/t/entry-formatting-problems/9089.rss" /> <meta property="og:site_name" content="SIL Language Software Community" /> <meta property="og:type" content="website" /> <meta name="twitter:card" content="summary" /> <meta name="twitter:image" content="https://community.software.sil.org/uploads/default/original/2X/9/915008485ea489393346d1b262242891e50fb614.png" /> <meta property="og:image" content="https://community.software.sil.org/uploads/default/original/2X/9/915008485ea489393346d1b262242891e50fb614.png" /> <meta property="og:url" content="https://community.software.sil.org/t/entry-formatting-problems/9089" /> <meta name="twitter:url" content="https://community.software.sil.org/t/entry-formatting-problems/9089" /> <meta property="og:title" content="Entry formatting problems" /> <meta name="twitter:title" content="Entry formatting problems" /> <meta property="og:description" content="I’m trying to track down some entry formatting problems in DAB. I have exported my database from FieldWorks as an XHTML file, and one entry appears like this: When I build the app, the entry appears like this: There is an extra line break appearing after the sense numbers. Well, I waded into the code, and found the HTML code that the app is presenting on the screen. I exported that code and put it into an .html file, which can be found in this .zip file: entry.zip (8.4 KB) If you extrac..." /> <meta name="twitter:description" content="I’m trying to track down some entry formatting problems in DAB. I have exported my database from FieldWorks as an XHTML file, and one entry appears like this: When I build the app, the entry appears like this: There is an extra line break appearing after the sense numbers. Well, I waded into the code, and found the HTML code that the app is presenting on the screen. I exported that code and put it into an .html file, which can be found in this .zip file: entry.zip (8.4 KB) If you extrac..." /> <meta property="og:article:section" content="Dictionary App Builder" /> <meta property="og:article:section:color" content="FFFFFF" /> <meta property="article:published_time" content="2024-08-28T20:49:27+00:00" /> <meta property="og:ignore_canonical" content="true" /> </head> <body class="crawler browser-update"> <nav id="bar"> <a id="softwareSiteLink" href="http://software.sil.org"> <img src="/uploads/default/original/2X/e/ef582ee150167aae331b77366d9b8774585dd95d.png" alt="SIL Language Software"> </a> <ul> <li><a href="http://software.sil.org/news/">News</a></li> <li><a href="http://software.sil.org/products/">Products</a></li> <li><a href="http://software.sil.org/about/">Contact</a></li> </ul> </nav> <header> <a href="/"> SIL Language Software Community </a> </header> <div id="main-outlet" class="wrap" role="main"> <div id="topic-title"> <h1> <a href="/t/entry-formatting-problems/9089">Entry formatting problems</a> </h1> <div class="topic-category" itemscope itemtype="http://schema.org/BreadcrumbList"> <span itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem"> <a href="/c/dab/18" class="badge-wrapper bullet" itemprop="item"> <span class='badge-category-bg' style='background-color: #FFFFFF'></span> <span class='badge-category clear-badge'> <span class='category-name' itemprop='name'>Dictionary App Builder</span> </span> </a> <meta itemprop="position" content="1" /> </span> </div> </div> <div itemscope itemtype='http://schema.org/DiscussionForumPosting'> <meta itemprop='headline' content='Entry formatting problems'> <link itemprop='url' href='https://community.software.sil.org/t/entry-formatting-problems/9089'> <meta itemprop='datePublished' content='2024-08-28T20:49:27Z'> <meta itemprop='articleSection' content='Dictionary App Builder'> <meta itemprop='keywords' content=''> <div itemprop='publisher' itemscope itemtype="http://schema.org/Organization"> <meta itemprop='name' content='SIL International'> <div itemprop='logo' itemscope itemtype="http://schema.org/ImageObject"> <meta itemprop='url' content='https://community.software.sil.org/uploads/default/original/1X/43507a8a0b20553fc8d5ff0c509b36326aff3dbf.png'> </div> </div> <div id='post_1' class='topic-body crawler-post'> <div class='crawler-post-meta'> <span class="creator" itemprop="author" itemscope itemtype="http://schema.org/Person"> <a itemprop="url" href='https://community.software.sil.org/u/jheath'><span itemprop='name'>jheath</span></a> </span> <link itemprop="mainEntityOfPage" href="https://community.software.sil.org/t/entry-formatting-problems/9089"> <link itemprop="image" href="https://community.software.sil.org/uploads/default/original/2X/9/915008485ea489393346d1b262242891e50fb614.png"> <span class="crawler-post-infos"> <time datetime='2024-08-28T20:49:27Z' class='post-time'> August 28, 2024, 8:49pm </time> <meta itemprop='dateModified' content='2024-08-28T20:49:27Z'> <span itemprop='position'>1</span> </span> </div> <div class='post' itemprop='text'> <p>I’m trying to track down some entry formatting problems in DAB. I have exported my database from FieldWorks as an XHTML file, and one entry appears like this:<br> <img src="https://community.software.sil.org/uploads/default/original/2X/9/915008485ea489393346d1b262242891e50fb614.png" alt="image" data-base62-sha1="kJuHvv5nDXGy70Ic3x3JqObGPha" width="281" height="219"></p> <p>When I build the app, the entry appears like this:<br> <img src="https://community.software.sil.org/uploads/default/original/2X/3/37470c76b114594467baf6bdd997988412933377.png" alt="image" data-base62-sha1="7T0tSJX2HqdqgyFO4xVppR8tZIz" width="313" height="330"></p> <p>There is an extra line break appearing after the sense numbers.</p> <p>Well, I waded into the code, and found the HTML code that the app is presenting on the screen. I exported that code and put it into an .html file, which can be found in this .zip file:<br> <a class="attachment" href="/uploads/short-url/ctYpDqxoTfcIcQrgtrCyCTWRdM1.zip">entry.zip</a> (8.4 KB)</p> <p>If you extract that .html file and open it in a browser, you get the layout shown above, with the extra line breaks after the sense numbers. But if I open up the Web Developer Tools and look at the data and css styles, I don’t see anything that should be pushing the rest of that sense onto the next line.</p> <p>Can someone else take a look and see if you can see why it’s doing that? A difference between XHTML and HTML?!</p> <p>Thanks,<br> Jeff</p> </div> <div itemprop="interactionStatistic" itemscope itemtype="http://schema.org/InteractionCounter"> <meta itemprop="interactionType" content="http://schema.org/LikeAction"/> <meta itemprop="userInteractionCount" content="0" /> <span class='post-likes'></span> </div> </div> <div id='post_2' itemprop='comment' itemscope itemtype='http://schema.org/Comment' class='topic-body crawler-post'> <div class='crawler-post-meta'> <span class="creator" itemprop="author" itemscope itemtype="http://schema.org/Person"> <a itemprop="url" href='https://community.software.sil.org/u/Daniel_H'><span itemprop='name'>Daniel_H</span></a> </span> <span class="crawler-post-infos"> <time itemprop='datePublished' datetime='2024-08-28T21:56:46Z' class='post-time'> August 28, 2024, 9:56pm </time> <meta itemprop='dateModified' content='2024-08-28T21:56:46Z'> <span itemprop='position'>2</span> </span> </div> <div class='post' itemprop='text'> <p>Hi Jeff</p> <p>This is the offending CSS:</p> <pre><code class="lang-auto">.entry&gt; .senses &gt; .sensecontent &gt; .sense&gt; .definitionorgloss { display: block; } </code></pre> <p>on this span:<br> <code>&lt;span class="definitionorgloss"&gt;&lt;span lang="fr"&gt;Coutume&lt;/span&gt;&lt;/span&gt;</code></p> <p>If you remove that CSS rule, it looks right.</p> </div> <div itemprop="interactionStatistic" itemscope itemtype="http://schema.org/InteractionCounter"> <meta itemprop="interactionType" content="http://schema.org/LikeAction"/> <meta itemprop="userInteractionCount" content="0" /> <span class='post-likes'></span> </div> </div> <div id='post_3' itemprop='comment' itemscope itemtype='http://schema.org/Comment' class='topic-body crawler-post'> <div class='crawler-post-meta'> <span class="creator" itemprop="author" itemscope itemtype="http://schema.org/Person"> <a itemprop="url" href='https://community.software.sil.org/u/jheath'><span itemprop='name'>jheath</span></a> </span> <span class="crawler-post-infos"> <time itemprop='datePublished' datetime='2024-08-29T16:13:55Z' class='post-time'> August 29, 2024, 4:13pm </time> <meta itemprop='dateModified' content='2024-08-29T16:13:55Z'> <span itemprop='position'>3</span> </span> </div> <div class='post' itemprop='text'> <p>Thanks, Daniel, for finding that. I don’t know why I didn’t see that before, as it’s quite obvious now. A good opportunity to exercise humility… <img src="https://community.software.sil.org/images/emoji/twitter/slight_smile.png?v=12" title=":slight_smile:" class="emoji" alt=":slight_smile:" loading="lazy" width="20" height="20"></p> <p>It looks like that CSS rule is not found in the XHTML that is exported from FieldWorks, so now I just need to figure out where in the DAB code that it is adding that extra rule.</p> <p>Thanks for your help!<br> Jeff</p> </div> <div itemprop="interactionStatistic" itemscope itemtype="http://schema.org/InteractionCounter"> <meta itemprop="interactionType" content="http://schema.org/LikeAction"/> <meta itemprop="userInteractionCount" content="0" /> <span class='post-likes'></span> </div> </div> </div> </div> <footer class="container wrap"> <nav class='crawler-nav'> <ul> <li itemscope itemtype='http://schema.org/SiteNavigationElement'> <span itemprop='name'> <a href='/' itemprop="url">Home </a> </span> </li> <li itemscope itemtype='http://schema.org/SiteNavigationElement'> <span itemprop='name'> <a href='/categories' itemprop="url">Categories </a> </span> </li> <li itemscope itemtype='http://schema.org/SiteNavigationElement'> <span itemprop='name'> <a href='/guidelines' itemprop="url">Guidelines </a> </span> </li> <li itemscope itemtype='http://schema.org/SiteNavigationElement'> <span itemprop='name'> <a href='http://software.sil.org/terms-of-use/' itemprop="url">Terms of Service </a> </span> </li> <li itemscope itemtype='http://schema.org/SiteNavigationElement'> <span itemprop='name'> <a href='http://software.sil.org/privacy-policy/' itemprop="url">Privacy Policy </a> </span> </li> </ul> </nav> <p class='powered-by-link'>Powered by <a href="https://www.discourse.org">Discourse</a>, best viewed with JavaScript enabled</p> </footer> <div class="buorg"><div>Unfortunately, <a href="https://www.discourse.org/faq/#browser">your browser is unsupported</a>. Please <a href="https://browsehappy.com">switch to a supported browser</a> to view rich content, log in and reply.</div></div> </body> </html>

Pages: 1 2 3 4 5 6 7 8 9 10