-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Font Identification #6
Comments
There is a style guide from the clerk’s office. We can inquire.
On Tue, Jun 4, 2019 at 12:22 PM Ted Han ***@***.***> wrote:
As it turns out, Congress's Office of Legislative Counsel provides guidelines
for legislation
<https://legcounsel.house.gov/HOLC/Drafting_Legislation/Drafting_Guide.html>.
These guidelines include specific advices about formatting and style.
The guide specifies a font hierarchy, and we can use those as the guide
for making assumptions about the draft legislative documents which are
uploaded to the tool.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#6?email_source=notifications&email_token=AAWRVUFFN7I52Z7FJ47ZSQLPY2JEJA5CNFSM4HS6UA72YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4GXSLLUA>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAWRVUAVERS36WNGEBU7VKLPY2JEJANCNFSM4HS6UA7Q>
.
--
- Daniel (Please excuse typos, send by phone )
|
@GullicksonK helpfully points out that GPO provides stylesheets for legislative XML documents (which may be included in some legislative PDFs). And here's an example document |
After sufficient spelunking of PDF.js internals, I've found that it's possible to read the font data embedded in the PDF. It's possible to export the fonts as well. For the time being just reading what the intended font is (the name of the font, and whether it's a bold or italic variation) is sufficient to style the output DocX. So, i'm going to mark this one as complete. |
As it turns out, Congress's Office of Legislative Counsel provides guidelines for legislation. These guidelines include specific advices about formatting and style.
The guide specifies a font hierarchy, and we can use those as the guide for making assumptions about the draft legislative documents which are uploaded to the tool.
The text was updated successfully, but these errors were encountered: