CDRH / chesnutt

Rails site code for the Charles W. Chesnutt Archive https://chesnuttarchive.org
0 stars 0 forks source link

Think about display for different hands #178

Closed kmcmullen closed 1 year ago

kmcmullen commented 2 years ago

If there's an easy way to have hands display differently, that might be nice. For example, in this letter: https://cdrhdev1.unl.edu/chesnutt/item/ccda.corr00107. Maybe the letterhead at the top could be rendered one way, the note ("Miss Thorn") another way, and the body of the letter a different way...?

kmcmullen commented 2 years ago

The "4026" near the top here is another example of a <note type="archival"> that seems like it should somehow display differently than the surrounding text: https://cdrhdev1.unl.edu/chesnutt/item/ccda.corr00184

karindalziel commented 1 year ago

This is actually a pretty complicated thing. I thought chesnutt wasn't going to use handshift the way that Whitman does, I still don't have a way to display it and won't by chesnutt launch. (I can display the tags marked by a certain hand just fine though)

So for the following example:

<opener>
    <handShift new="#h01"/>
        <address>
            <addrLine><hi rend="smallCaps">CHAS. W. CHESNUTT,</hi></addrLine>
            <addrLine><hi rend="smallCaps">ATTORNEY-AT-LAW,</hi></addrLine>
            <addrLine><hi rend="smallCaps">1005 WILLIAMSON BUILDING,</hi></addrLine>
            <addrLine><hi rend="smallCaps">CLEVELAND, O.</hi></addrLine>
        </address>
        <note place="right" hand="h03"><hi rend="underline">Miss Thorn</hi></note>
    <dateline>
         <handShift new="#h02"/><date when="1902-05-23">May 23, 1902</date>.
    </dateline>
  <address>
      <addrLine>Booker T. Washington, Esq.,</addrLine>
      <addrLine>Tuskegee Institute,</addrLine>
      <addrLine>Tuskegee, Ala.</addrLine>
  </address>
    <salute>My dear Mr. Washington:&#8212;</salute>
</opener>

<p>My daughter Helen

I can style the <address> or <addrLine> elements differently, but there's nothing to grab onto to make them different from each other currently.

Cather Letters encoded the letterhead explicitly like this:

<fw type="letterhead" place="top">⬩W⬩S⬩C⬩</fw>

which makes it very easy to style the letterhead differently and show/hide it as needed.

We'll get the handshift eventually, I have it planned for Whitman work, but it won't be for a bit.

karindalziel commented 1 year ago

In order to make use of the small caps to differentiate the view a bit, I added this rule:

.SmallCaps,
.tei_hi_rend_smallCaps,
.tei_hi_rend_smallcaps {
  text-transform: lowercase;  
  font-variant: small-caps;
}

note that once we have removed the all caps text in small caps tags, we should remove the text-transform:lowercase rule, see #198

karindalziel commented 1 year ago

I have changed the archival notes to gray text and monospace font