% fixkernaccents.tex

% requires \thenewskewchar to be set to the new skewchar _before_ renaming

\setcommand\fixaccentkern#1#2#3#4%
%  parameters: character, kern, skewchar bbleft, skewchar bbright
{
  \resetint{temp}
  {
    \add
    {
      #2 %\kerning{#1}{\skewchar}
    }
    {
      \half
      {
        \add
        {
          \sub
          {
            \width{#1}
          }
          {
            \italic{#1}
          }
        }
        {
          \add
          {
            #3 %\bbleft{\skewchar}
          }
          {
            #4 %\bbright{\skewchar}
          }
        }
      }
    }
  }
  \setkern{#1}{\thenewskewchar}{\strint{temp}}
  % Thanks to Lars Hellstrom for pointing out that the third parameter can't be just the \add macro
}
