<div dir="ltr"><div dir="ltr">On Fri, Oct 16, 2020 at 7:23 AM Eric Muller <<a href="mailto:emuller@amazon.com">emuller@amazon.com</a>> wrote:</div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div>
    <div>On 10/15/20 6:02 PM, Behdad Esfahbod
      wrote:</div><blockquote type="cite">
      
      <div></div>
      
      <div>
        <div dir="ltr">
          <div dir="ltr">On Thu, Oct 15, 2020 at 6:01 PM Eric Muller
            <<a href="mailto:emuller@amazon.com" target="_blank">emuller@amazon.com</a>> wrote:<br>
          </div>
          <div class="gmail_quote">
            <blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
              Shouldn't hb_script_from_iso15924_tag map "Hans" and
              "Hant" to <br>
              HB_SCRIPT_HAN?<br>
            </blockquote>
            <div><br>
            </div>
            <div>hb_script_from_iso15924_tag() doesn't do any mapping
              whatsoever.<br>
            </div>
            <div><br>
            </div>
            <div>Why is that desirable?</div>
          </div>
        </div>
      </div>
    </blockquote>
    <br>
    We start from a BCP47 tag, completed with likely subtags, and want
    to get baselines. I was hoping to use HB's knowledge of mapping from
    BCP47 scripts to OT script tags. <br></div></blockquote><div><br></div><div>This is David Crobett's area. We don't have satisfactory BCP47 API. The closest I see is:</div><div><br></div><div>  hb_ot_tags_from_script_and_language()</div><div><br></div><div>I don't know if that does what you need. I would guess you call that and then hb_ot_layout_get_baseline() over the various combinations of script/language tags from there.</div><div><br></div><div>For GSUB/GPOS we have hb_ot_layout_table_select_script() which does some of the repetitive work. I can imagine the same method can be extended to also work for BASE table.</div><div><br></div><div>Are you using HB BASE-table API? Because that would be a first AFAIK and I'm interested in making it work for you.</div><div><br></div><div>Thanks,</div><div>behdad </div></div></div>