Changes to black compression and saturation controls. Black compression from 0-50 acts the same as 0-100 on the previous version, compressing dark tones without crushing blacks. 50-100 then starts crushing blacks until by 100 on the slider, all tones up to the set black point are sent to zero. In the new saturation control, negative values of the slider set a linear curve rather than an inverted S curve, and smoothly decrease saturation to zero across the board.

This commit is contained in:
Emil Martinec
2010-10-26 22:59:18 -05:00
commit 926056c2c2
620 changed files with 130476 additions and 0 deletions

View File

@@ -0,0 +1,53 @@
#!/bin/bash
#
# Append translation differences on the end of all files. Developers should run this script
# after changing default, so that translators can easily see what items need to be translated.
#
# This script should be run from the project root, e.g:
# $ ./tools/generateTranslationDiffs.sh
#
#####################
TEMP=temp_file
cd "rtdata/languages"
if [[ $? != 0 ]]; then
echo "You must run this script from the root of the project."
exit
fi
#First thing, we want to strip default of any !s and duplicates.
cat "default" | grep -v '^!' | sort | uniq > "$TEMP"
mv "$TEMP" "default"
echo "Generating differences... this may take a few minutes."
find . |
grep -v 'default' |
grep -v 'README' |
grep -v 'LICENSE' |
grep -v 'generateDiffs.sh' |
grep -v "$TEMP" |
grep -v '^.$' |
while read X; do
echo "Working on differences for $X"
#Start by copying the existing file to a temporary one, after sorting and removing all
#previous differences
cat "$X" | grep -v '^!' | sort | uniq > "$TEMP"
echo -e "\n\n!!!!!!!!!!!!!!!!!!!!!!!!!\n! Untranslated keys follow; remove the ! prefix after an entry is translated.\n!!!!!!!!!!!!!!!!!!!!!!!!!\n\n" >> "$TEMP"
cat 'default' | grep -v '^#' | while read LINE; do
KEY=`echo "$LINE" | cut -f 1 -d ';'`
grep -q "^$KEY" "$X";
if [[ $? != 0 ]]; then
echo "!$LINE" >> "$TEMP"
fi
done
#Replace the old file with the new one, with a section at the end for differences.
mv "$TEMP" "$X"
done
echo "Finished generating differences."