darthbhyrava claimed this task.
darthbhyrava added a comment.

  The way I see it, casechecker.SetColor is calling a Windows-specific ctypes 
function which assigns the parameter color to standard output handle, and is 
printing the a string ( "(b: ", "(g: " or "(r: ") in corresponding color. It is 
also called to switch to required color in ColorCodeWord(...) when 
toScreen=True and unset by using hardcoded syntax.
  
  _ColorFormatter.color_format on the other hand,  takes the string and 
corresponding colors, and passes them on to the superclass Formatter which 
calls vformat (now overridden).
  
  I don't think this can be resolved by changing just those four lines of code 
in casechecker.py. It would require making edits to ColorCodeWord(), too, and 
maybe add in a Formatter subclass, too.
  
  Can someone tell me if I am on the right track?

TASK DETAIL
  https://phabricator.wikimedia.org/T119904

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: darthbhyrava
Cc: darthbhyrava, Aklapper, pywikibot-bugs-list, jayvdb, tahteche, Jay8g



_______________________________________________
pywikibot-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs

Reply via email to