Rob Emery
1e19168df3
Conversions: Scaffolding for template
2016-02-20 20:19:09 +00:00
Rob Emery
8e902e39ff
Conversions: Switching output to text template
2016-02-20 20:19:09 +00:00
tagawa
dab4ed2eff
Security addons: Added Vivaldi to browser list
2016-02-19 08:05:13 +00:00
Ben Moon
8e66f97fc6
Replace 'JSON::XS' with 'JSON::MaybeXS'
2016-02-18 16:40:39 +00:00
Ben Moon
78443c321b
Update use of 'JSON' to 'JSON::XS'
2016-02-18 12:48:02 +00:00
Zaahir Moolla
a952adc749
Merge pull request #1970 from GuiltyDolphin/piglatin-trigger-fix
...
PigLatin: Update to use templates
2016-02-17 11:54:23 -05:00
Ben Moon
6931761844
Allow for currently unassigned categories
2016-02-17 11:25:40 +00:00
Ben Moon
620f0a051c
Add support for 'ignore' option
...
Fixes #1528
2016-02-17 11:17:14 +00:00
Ben Moon
3e212d11c0
Move ID check into loop
2016-02-17 09:48:19 +00:00
Ben Moon
170eee5b36
Replace 'YAML' with 'YAML::XS'
2016-02-17 09:43:55 +00:00
Ben Moon
b951b103bd
Remove JSON import
...
Already using JSON::XS
2016-02-16 19:38:27 +00:00
Ben Moon
fb72ef5091
Replace 'Load' with 'LoadFile'
2016-02-16 17:54:47 +00:00
Zaahir Moolla
1a3faee8e4
Merge pull request #2296 from swapagarwal/improve-bitsum
...
Bitsum: Fixes #1902
2016-02-15 17:50:15 -05:00
Zaahir Moolla
1fffcaeb14
Merge pull request #2298 from duckduckgo/pr/1924
...
Pr/1924
2016-02-15 17:32:29 -05:00
Zaahir Moolla
58a8f00e7b
Cleanup comment alignment
2016-02-15 17:06:44 -05:00
Zaahir Moolla
90174a5bd4
fix template, define regex once, cleanup indents
2016-02-15 17:02:07 -05:00
Ben Moon
49da10c136
Merge pull request #2264 from Mailkov/issue2239
...
Parsecron: adding support for start + interval arguments
2016-02-15 19:51:38 +00:00
sagarwal
8b00a066a3
Improve subtitle text layout
2016-02-15 19:29:52 +00:00
Ben Moon
442d7ef07a
Move triggers and template maps into YAML
2016-02-15 19:19:25 +00:00
Zaahir Moolla
cf7901ddb0
Merge pull request #1965 from duckduckgo/mintsoft/template/abc
...
Switching ABC to text template
2016-02-15 14:18:54 -05:00
sagarwal
507935e74b
Improve layout to include base
2016-02-15 18:18:26 +00:00
Ben Moon
46d571e296
Update handle to use 'query'
...
For normalized white-space.
2016-02-15 18:09:30 +00:00
Ben Moon
cd1cba2187
Improve lookup method
...
Triggers now map to template types and/or files, rather than categories.
This means that a **direct** lookup can be used, rather than having to
iterate through an array of categories.
2016-02-15 18:04:30 +00:00
Zaahir Moolla
1c858b959e
Merge pull request #1916 from Mailkov/issue1786
...
Fix #1786 - Frequency Spectrum: Convert to use templates + JS
2016-02-15 12:26:59 -05:00
Ben Moon
9edeb02b09
Update 'matched_trigger' normalizing
2016-02-15 17:06:54 +00:00
Ben Moon
6941f2ab05
De-ref 'trigger_lookup'
2016-02-15 17:04:40 +00:00
Zaahir Moolla
593f4c1f7d
Merge pull request #1961 from Mailkov/convertlatlonissue1163
...
Issue #1163 - Convert ConvertLatLon to use template
2016-02-15 11:09:27 -05:00
Zaahir Moolla
4ef141564c
Merge pull request #1981 from Mailkov/dessertissue1163
...
Issue #1163 - Convert Dessert to use templates
2016-02-15 11:03:42 -05:00
Ben Moon
038c335347
Improve naming
2016-02-14 20:31:18 +00:00
Ben Moon
7bb3e709f0
Remove hash check
...
It's always a HASH! Forgot about that, but yeah, because you *cannot*
specify that the name isn't required, there is no ambiguity - a name
must always be present :)
2016-02-14 20:18:30 +00:00
Ben Moon
53ed499a4a
Remove support for trigger options
...
Not providing enough good use cases at the moment.
2016-02-14 20:08:17 +00:00
Ben Moon
2df91bb5c1
Move category generation in with aliases
...
So it doesn't have to be computed at 'run time'.
2016-02-14 19:54:21 +00:00
Ben Moon
3a2126e83d
Update handling of whitespace in trigger
2016-02-14 19:03:27 +00:00
Ben Moon
a55321667e
Merge 'generate_triggers' and 'make_all_triggers'
...
They were both part of the same work.
2016-02-14 18:49:56 +00:00
Ben Moon
d346ba7db2
Correct lookup casing
2016-02-14 18:43:06 +00:00
Ben Moon
eada77586e
Remove some redundant code
2016-02-14 17:21:46 +00:00
Ben Moon
901c373479
Remove 'standard' triggers
...
No longer needed due to selection based on ID.
2016-02-14 17:21:13 +00:00
Ben Moon
1a8e422f1c
Simplify trigger handling
...
Hopefully...
2016-02-14 16:58:57 +00:00
Ben Moon
5ce28ee927
Remove trigger normalizing
...
Can merge it into the main generator.
2016-02-14 16:37:13 +00:00
Rob Emery
cdf6954ab7
Merge pull request #2047 from GuiltyDolphin/conversions-sci-notation
...
Conversions: Fix #2041
2016-02-14 16:23:06 +00:00
Ben Moon
4b4c2a1740
Add category map support
...
Maps from templates to categories - should help reduce trigger
redundancy.
2016-02-14 15:01:54 +00:00
Ben Moon
982295cfb6
Add 'full_match' option
...
Determines whether the remainder of the query must be empty for the
trigger to match
2016-02-14 15:01:54 +00:00
Ben Moon
a49e6315b4
Allow more flexibility with custom triggers
...
Uses a hash with the file and options rather than just a file name.
2016-02-14 15:01:54 +00:00
Ben Moon
7b87770d1a
Allow disabling of trigger from hash
2016-02-14 15:01:54 +00:00
Ben Moon
58073764e0
Fix warning when no triggers were enabled
...
If you had something like
```
"id": {
"start": {
"trigger": 0
}
}
```
It would cause warnings from DDG trigger handling.
2016-02-14 15:01:54 +00:00
Ben Moon
a99c3ded21
Fix issue with custom non 'startend's
...
Additional triggers were behaving a bit... Oddly.
2016-02-14 15:01:54 +00:00
Ben Moon
4326c965ce
Improve handling of standard queries
...
No messing around this time - just straight up checking against
supported categories.
2016-02-14 15:01:54 +00:00
Ben Moon
cf82be37c2
Rewrite handling of custom triggers
...
Uses a (hopefully) much more efficient system for handling custom
triggers.
2016-02-14 15:01:54 +00:00
Ben Moon
2b91c551ca
Update CheatSheets to use hash triggers
2016-02-14 15:01:54 +00:00
Ben Moon
3ad96d129e
Die when an unknown category is specified
2016-02-14 15:01:54 +00:00
Ben Moon
1171aa6488
Improve formatting
2016-02-14 15:01:54 +00:00
Ben Moon
d80a31b1b0
Move additional triggers to triggers file
...
And reduce some code as per these changes.
2016-02-14 15:01:54 +00:00
Ben Moon
fa72a01fcd
Move standard triggers into JSON file
2016-02-14 15:01:54 +00:00
Ben Moon
65ed06f4ed
Improve death message on duplicate aliases
2016-02-14 15:01:54 +00:00
Ben Moon
d67c679fee
Clean up options setter
2016-02-14 15:01:53 +00:00
Ben Moon
c6a2f3b069
Remove List::Util dependency
2016-02-14 15:01:53 +00:00
Ben Moon
ccc1ef35cc
Remove redundant 'cheat_names_equal' sub
2016-02-14 15:01:53 +00:00
Ben Moon
67d059e25d
Clean up 'add_triggers' sub
2016-02-14 15:01:53 +00:00
Ben Moon
e2534309e7
Remove List::MoreUtils dependency
2016-02-14 15:01:53 +00:00
Ben Moon
c43a750f61
Fix issue with undefined triggers
2016-02-14 15:01:53 +00:00
Ben Moon
ea5836c04e
Move triggers into separate json file
2016-02-14 15:01:53 +00:00
Ben Moon
a79d4674af
Add additional triggers for 'code'
...
'syntax', 'methods', and 'functions'.
2016-02-14 15:01:53 +00:00
Ben Moon
6544491be5
Improve name collision detection
2016-02-14 15:01:53 +00:00
Ben Moon
31fe740300
Remove alias warning from main Goodie
...
Don't need to duplicate the warning with the tests.
2016-02-14 15:01:53 +00:00
Ben Moon
f04b3d3dc5
Assume name required for triggers by default
2016-02-14 15:01:53 +00:00
Ben Moon
354fd1561a
Allow non-array triggers
...
More in-line with the actual trigger system
2016-02-14 15:01:53 +00:00
Ben Moon
6eb7cd33b8
Demote alias of file name to warning
...
I think there will be times when having this duplication will be
necessary, such as when the file name keeps changing!
2016-02-14 15:01:53 +00:00
Ben Moon
4fae8f769b
Add 'math' category
...
For equations.
2016-02-14 15:01:53 +00:00
Ben Moon
24284a6a8d
Improve formatting
2016-02-14 15:01:53 +00:00
Rob Emery
164b68861e
ABC: adding html_enc to output for the encoding bug
2016-02-13 20:23:31 +00:00
Rob Emery
d3363049f1
ABC: Switching to text template
2016-02-13 20:23:31 +00:00
Rob Emery
82c5172034
ABC: Switching to text template
2016-02-13 20:22:24 +00:00
Rob Emery
69c8c725c6
ABC: adding html_enc to output for the encoding bug
2016-02-13 20:20:08 +00:00
Rob Emery
a1be284d44
ABC: Switching to text template
2016-02-13 20:20:07 +00:00
Rob Emery
adb153ef0f
ABC: Switching to text template
2016-02-13 20:20:07 +00:00
Zach Thompson
de13ae2746
Remove Ascii which has been replaced by Bin2Unicode
2016-02-12 11:54:20 -07:00
Zaahir Moolla
67972ea88a
Merge pull request #2272 from Mailkov/warningunixtime
...
UnixTime - Fixes Use of uninitialized value $+{"trigger"}
2016-02-12 12:59:11 -05:00
Mailkov
d426d03b64
fix use of initialized value
2016-02-12 16:27:46 +00:00
Ben Moon
1361fef76b
Encode title
...
Using html_enc for title too.
2016-02-12 15:00:11 +00:00
Ben Moon
b905d90634
Remove imperative trigger
...
Should not trigger on 'piglatin X'.
2016-02-12 14:51:27 +00:00
Ben Moon
34e241c9e6
Improve clarity of 'use_paragraphs' attribute
...
Make it clearer that it is a boolean value by using just 1 and 0.
2016-02-12 14:19:13 +00:00
ilv
32b5c23929
Merge branch 'master' of https://github.com/duckduckgo/zeroclickinfo-goodies into fix_latex_sum
2016-02-12 13:14:47 +00:00
Zaahir Moolla
103d9dc389
Merge pull request #1985 from Mailkov/teredoissue1163
...
Issue #1163 - Convert Teredo to use templates
2016-02-12 00:26:17 -05:00
Zaahir Moolla
ffcc97f303
Merge pull request #2045 from duckduckgo/zt/bin2unicode
...
Binary to unicode converter
2016-02-12 00:20:04 -05:00
ilv
9dc03e6c46
Added missing underscore in Latex sum example
2016-02-12 05:14:03 +00:00
Zaahir Moolla
2482acc0e8
Switch tabs to spaces
2016-02-11 23:57:45 -05:00
Zaahir Moolla
2230788ab9
Merge pull request #1963 from cngarrison/minecraft-triggering
...
Minecraft: Fixes #1949
2016-02-11 23:56:15 -05:00
Zaahir Moolla
c9319840d6
Merge pull request #1990 from Mailkov/reverseresistorcoloursissue1163
...
Issue #1163 - Convert ReverseResistorColours to use templates
2016-02-11 23:28:18 -05:00
Zaahir Moolla
00dbfe9963
Merge pull request #2267 from duckduckgo/pr/1017
...
Continue #1017
2016-02-11 19:00:49 -05:00
Zaahir Moolla
882957cea2
Remove comments
2016-02-11 18:46:03 -05:00
Zaahir Moolla
2e544c476f
Simplify weights hash
2016-02-11 18:45:43 -05:00
Zaahir Moolla
907ad3a5e0
Add max weight limit
2016-02-11 18:37:24 -05:00
Zaahir Moolla
0b76d356cd
Remove Perl metadata, handled by IA Page
2016-02-11 18:27:36 -05:00
Zaahir Moolla
14d238f042
Merge pull request #2262 from GuiltyDolphin/remove-metadata
...
Remove Metadata
2016-02-11 16:41:56 -05:00
Zaahir Moolla
2e8dd988b0
Merge pull request #1991 from Mailkov/figletissue1163
...
Issue #1163 - Convert FIGlet to use templates
2016-02-11 15:22:16 -05:00
Mailkov
1d9a8df404
delete unused code
2016-02-11 18:47:05 +00:00
Mailkov
f30a827950
make unique sub to solve x/y argument
2016-02-11 18:22:56 +00:00
Mailkov
724fad5bc8
add support for start + interval arguments on weekday
2016-02-11 18:01:30 +00:00
Mailkov
cd5dd0470a
add support for start + interval arguments on month
2016-02-11 17:57:04 +00:00
Mailkov
6a3f4b9f33
add support for start + interval arguments on date
2016-02-11 17:51:28 +00:00
Mailkov
bc970a643e
add support for start + interval arguments on minutes
2016-02-11 17:42:03 +00:00
Mailkov
0eff1575b9
addgsupport for start + interval arguments on hours
2016-02-11 17:25:25 +00:00
Ben Moon
46b19a54a7
Remove metadata
2016-02-11 13:36:11 +00:00
tyasaka
a2744b6c79
Minor tweaks.
...
Adjusted wording, added test cases.
Changes to be committed:
modified: lib/DDG/Goodie/UltimateAnswer.pm
modified: t/UltimateAnswer.t
2016-02-07 23:14:32 +00:00
tyasaka
9c30eecc6a
Minor tweak to trigger handler.
...
Changes to be committed:
modified: lib/DDG/Goodie/UltimateAnswer.pm
2016-02-07 20:41:22 +00:00
Ben Moon
5ef7d7b74b
Move synonyms into JSON file
2016-02-06 13:54:41 +00:00
Ben Moon
7540baaa05
Remove redundant variable
2016-02-06 13:49:04 +00:00
Ben Moon
864fe0dbe9
Convert synonyms to a hash
2016-02-06 13:48:37 +00:00
Ben Moon
6931287188
Remove HTML::Entities dependency
2016-02-06 13:24:34 +00:00
Ben Moon
2c4254faab
Update to use text template
2016-02-06 13:22:56 +00:00
Ben Moon
8838957d4f
Remove cheat sheet triggers
...
Don't want it to trigger on those...
2016-02-06 13:05:41 +00:00
Ben Moon
18c6b9c596
Move html into content file
2016-02-06 13:02:25 +00:00
Ben Moon
c1546375f7
Update data method for answer
2016-02-06 11:56:16 +00:00
Ben Moon
214d9433a1
Correct content field
2016-02-06 11:53:47 +00:00
Ben Moon
0a057be7bc
Update main package to use structured answer
2016-02-06 10:10:57 +00:00
Ben Moon
9d28dd5918
Update package names
2016-02-06 09:50:53 +00:00
Ben Moon
72935a0c55
Rename MarkdownCheatSheet to MarkdownReference
2016-02-06 09:44:43 +00:00
Ben Moon
e52656a941
Disallow aliases that match the cheat sheet name
2016-02-04 19:29:16 +00:00
Ben Moon
4255962169
Fix #1844
...
No more duplicate aliases!
2016-02-04 19:29:16 +00:00
Ben Moon
d9462ea770
Add support for options
...
And the 'require_name' option which just states that after matching,
processing should be done as if it weren't a custom trigger.
Basically means that the name (or an alias) is required in order to
trigger the cheat sheet.
2016-02-04 19:29:16 +00:00
Ben Moon
adb28fd8b9
Allow specifying custom triggers
...
Cheat Sheets are now more awesome.
2016-02-04 19:29:16 +00:00
Ben Moon
fc729cd225
Allow specifying multiple categories
...
In the 'additional_categories' field.
2016-02-04 19:29:16 +00:00
Ben Moon
af9e7826d8
Add categorical triggers
...
More relevancy, MOREEE!
2016-02-04 19:29:16 +00:00
Ben Moon
b87984b720
Set signal to high
...
Some other IAs trigger on the obscure regex queries!
2016-02-04 12:06:25 +00:00
Ben Moon
008bab26db
Improve formatting
...
Clean up some whitespace, make things easier to read, remove some
redundant functions etc...
2016-02-03 19:31:34 +00:00
Ben Moon
ebf686c6a1
Allow lowercase trailing TZs
...
E.g., cet rather than CET
2016-02-03 19:31:34 +00:00
Ben Moon
81ef278d27
Fix casing support
...
- Improve support for mixed-case queries.
- Improve case-formatting of results.
2016-02-03 19:31:34 +00:00
Ben Moon
124eaa8e5a
Prevent triggering on non-informative queries
...
If query has no action and is not relative, do not trigger.
2016-02-03 19:31:34 +00:00
Ben Moon
60a371dea8
Correct caching
2016-02-03 19:30:22 +00:00
Ben Moon
b42bc4c7dd
Add support for specifying time
...
Allows direct specification of time for input date.
2016-02-03 19:30:22 +00:00
Ben Moon
1915f773e9
Provide access to time regexes
...
time_24h_regex for 24 hour clocks
time_12h_regex for 12 hour clocks
2016-02-03 19:30:22 +00:00
Ben Moon
2093f3e073
Allow use of `time` form
...
Such as: `time now`, `time in 3 days` etc...
Will display time as well as date.
2016-02-03 19:30:22 +00:00
Ben Moon
3927595492
Fix some whitespace
2016-02-03 19:30:22 +00:00
Ben Moon
47daa8b593
Update to fall-back on time-zone offset
2016-02-03 19:30:22 +00:00
Ben Moon
fd97b48e33
Add support for 24hr clock in display
2016-02-03 19:30:22 +00:00
Ben Moon
3c7c92c85b
Fix issue with time-zone not being added correctly
2016-02-03 19:30:22 +00:00
Ben Moon
db88b11d1d
Add support for %d %b %Y %T %Z format
...
Essentially HTTP format without the day and allowing any timezone.
2016-02-03 19:30:22 +00:00
Ben Moon
a24b0aaf42
Update to use NumberStyler
2016-02-03 19:30:22 +00:00
Ben Moon
35f2a2f908
Fix plurals
2016-02-03 19:30:22 +00:00
Ben Moon
1dae5db923
Implement hour/minute/second support
...
Closes #2056
2016-02-03 19:30:21 +00:00
Ben Moon
8015a0fc85
Move duration computation out of handler
2016-02-03 19:30:21 +00:00
Ben Moon
676bdd9b4a
Update regexes for new units
2016-02-03 19:30:21 +00:00
Ben Moon
eb3673f722
Update to use answer-helper
2016-02-03 19:30:21 +00:00
Ben Moon
ee91838358
Update triggers for additional units
2016-02-03 19:30:21 +00:00
Ben Moon
ef7196868b
Convert to use templates
2016-02-03 19:30:21 +00:00
Ben Moon
4977cb0bb6
Fix some bad whitespace
2016-02-03 19:30:21 +00:00
Ben Moon
1203c78e57
Fix triggering with non-numbers
...
Would allow non-numbers to be present if numbers were already in the
query.
2016-02-03 18:10:38 +00:00
Ben Moon
6e55266f87
Remove 'sf' trigger
...
Reduce over-triggering - 'sf' seems to be used for other things.
2016-02-03 18:00:59 +00:00
Zaahir Moolla
2161a309fc
Merge pull request #2201 from duckduckgo/pr/2003
...
VIN: Switch to subtitle-content template, mimic new DuckDuckGo.pm design
2016-02-02 00:17:53 -05:00
Zaahir Moolla
c050fbfe8f
change template name, fix tests
2016-02-02 00:15:13 -05:00
Zaahir Moolla
4e0803b5c7
Pass along decode url to API
2016-02-02 00:09:28 -05:00
Zaahir Moolla
db251c5ebb
Switch replace moreAt with subtitle-content template
2016-02-02 00:06:45 -05:00
Zaahir Moolla
e2e83805aa
Merge pull request #1964 from duckduckgo/mintsoft/template-atbash
...
Convert Atbash to text template
2016-02-01 23:35:40 -05:00
Zaahir Moolla
6b40f1d3ed
add html_enc(), update tests
2016-02-01 23:31:29 -05:00
Zaahir Moolla
f7494c549a
Regex: Escape all html to prevent SERP breakage
2016-01-31 14:08:46 -05:00
Zaahir Moolla
8b6a2f1ffc
Merge pull request #1998 from GuiltyDolphin/regexp-improve
...
Regexp: Improvements!
2016-01-31 13:01:18 -05:00
Zaahir Moolla
f24d1d8322
Merge pull request #1974 from GuiltyDolphin/sigfigs-fix
...
SigFigs: Update to use templates + other improvements
2016-01-31 12:41:34 -05:00
Zaahir Moolla
e96d1a92e1
bring back some CSS, minor visual tweaks
2016-01-30 19:05:01 -05:00
Zaahir Moolla
3bc265f26e
Merge pull request #1989 from Mailkov/suninfoissue1163
...
Issue #1163 - Convert SunInfo to use templates
2016-01-30 19:04:27 -05:00
Zaahir Moolla
7e909ae220
Merge pull request #1978 from Mailkov/crypthashcheckissue1163
...
Issue #1163 - Convert CryptHashCheck to use templates
2016-01-30 18:34:08 -05:00
Zaahir Moolla
d04bd61413
Merge pull request #1959 from Mailkov/calendartodayissue1163
...
Issue #1163 - Convert CalendarToday to use templates
2016-01-30 18:24:07 -05:00
Zaahir Moolla
71ad58040f
Merge pull request #1886 from GuiltyDolphin/caesar-cipher
...
New Caesar Cipher Goodie
2016-01-29 20:10:29 -05:00
tyasaka
0b9f89a765
Changing query triggers/handle.
...
How does this look?
Changes to be committed:
modified: lib/DDG/Goodie/UltimateAnswer.pm
modified: t/UltimateAnswer.t
2016-01-28 16:21:22 +00:00
tyasaka
ead27a5a41
Some corrections.
...
Changes to be committed:
modified: lib/DDG/Goodie/UltimateAnswer.pm
modified: t/UltimateAnswer.t
2016-01-28 15:39:33 +00:00
tyasaka
4c00835e23
Added a template.
...
A few minor tweaks as well.
Changes to be committed:
modified: lib/DDG/Goodie/UltimateAnswer.pm
modified: t/UltimateAnswer.t
2016-01-28 03:45:46 +00:00
tyasaka
8ba0794ac7
Further attempts at improvement.
...
How does this look? Does this go in the right direction?
Changes to be committed:
modified: lib/DDG/Goodie/UltimateAnswer.pm
modified: t/UltimateAnswer.t
2016-01-27 05:15:21 +00:00
tyasaka
c5f6e90a03
Just trying to expand the query space a bit. I didn't realize this goodie existed at first because I couldn't get it to trigger.
...
If you type in 'answer to' in DDG, the second suggestion is currently 'answer to life the universe and everything'.
And if you type this query into Google, it will output 42 as the answer. So I think it makes sense that the query should also trigger this goodie.
On branch UltimateAnswer
Changes to be committed:
modified: lib/DDG/Goodie/UltimateAnswer.pm
modified: t/UltimateAnswer.t
2016-01-26 14:50:34 +00:00
Zaahir Moolla
54798e4e40
Merge pull request #1973 from amitdev/master
...
Periodic Table Updated - Fixes #1914
2016-01-25 21:43:35 -05:00
Jag Talon
8babf4ee28
Merge pull request #2005 from Mailkov/percenterrorissue1163
...
Issue #1163 - Convert PercentError to use templates
2016-01-25 15:56:38 -05:00
Jag Talon
8fb592b4c2
Merge pull request #2013 from GuiltyDolphin/zodiac-update-deps
...
Zodiac - Remove DateTime::Event::Zodiac Dependency
2016-01-25 15:40:16 -05:00
Zach Thompson
09e0e942e5
Return if any term is not a multiple of 8 to prevent auto-padding
2016-01-24 06:58:23 -07:00
Ben Moon
7254b9e96f
Add html_enc to subtitle
2016-01-24 10:14:12 +00:00
Ben Moon
1c87b33c94
Use html_enc to encode subtitles
...
It hurts dammit!
2016-01-24 10:06:23 +00:00
Ben Moon
8eae393c78
Limit amount of words generated
...
To 200 (roughly 25 sentences/lines).
2016-01-24 08:54:35 +00:00
Zaahir Moolla
28a75146cc
remove trailing space, add newline before ABSTRACT
2016-01-24 00:36:18 -05:00
Zaahir Moolla
e6a4f78c00
minor cleanup (activating github bot...)
2016-01-23 23:19:06 -05:00
Zach Thompson
657b0dead2
Put 'use big*' after is_cached so we don't promote is_cached
2016-01-21 11:12:38 -07:00
Ben Moon
8008d40d74
Update formatted input
...
From `Significant figures of...` to `Number of Significant Figures
in...`.
2016-01-18 19:06:00 +00:00
Ben Moon
0a5d01e73e
Improve triggers
...
Vastly improves the triggering!
I had a look at searches related to significant figures and none of the
common searches involved `sd` or `sig digs`, so I got rid of those
triggers.
A lot of the searches were along the lines of "What are the significant
figures of X?" - so I've updated the handler to allow for these types of
queries.
2016-01-18 19:05:58 +00:00
Ben Moon
6511199068
Improve general handling of significant figures
...
Fixes an issue with input of just '0', the Goodie was not triggering.
2016-01-18 19:05:07 +00:00
Ben Moon
b886023057
Add support for more number systems
...
Uses the `NumberStyler` GoodieRole to improve number support.
2016-01-18 19:05:06 +00:00
Ben Moon
85ec54e8be
Update answer to use text template
2016-01-18 19:05:06 +00:00
Ben Moon
e2878dfb45
Change to no response when no translation was done
2016-01-18 19:04:00 +00:00
Ben Moon
ace3370227
Add support for additional query forms
...
Will now work as one would expect for queries such as "How do you say X
in piglatin?".
2016-01-18 19:03:59 +00:00
Ben Moon
69fb77b905
Improve support general queries
...
* Makes it less likely that the Goodie will trigger on false-positives
(e.g., "What is piglatin?").
* Provides better support for matching when "piglatin" is included in
the query to be translated.
2016-01-18 19:02:12 +00:00
Ben Moon
8f2a36ccf5
Support translation to+from Pig Latin and casing
...
Swap to using the `Lingua::PigLatin::Bidirectional` package which
provides much better support for case-preservation as well as
translation to and from Pig Latin.
2016-01-18 19:02:10 +00:00
Ben Moon
d3108e2de2
Update answer to use templates
...
Now uses the 'text' answer template.
2016-01-18 19:01:29 +00:00
Ben Moon
aa97420208
Fix PigLatin triggering on empty input
...
Fixes #1969
2016-01-18 19:01:29 +00:00
Ben Moon
87a2d8e639
Clean up some code and functionality
...
Pull a few things out of the handler which don't need to be computed at runtime.
Clean up the `$default` system.
Move a few rogue comments.
2016-01-18 18:56:36 +00:00
Ben Moon
da3ab1a22a
Improve formatting of result
...
Made the title a bit smaller (and used a title rather than subtitle).
Display spacing between paragraphs.
Have "show more..." display for long texts.
Only display search suggestions on default input.
2016-01-18 18:56:36 +00:00
Ben Moon
3ee334ee4f
Add infobox for example queries
2016-01-18 18:56:36 +00:00
Ben Moon
764a03da73
Add main functionality
...
Adds the body to provide the functionality for the Goodie.
2016-01-18 18:56:35 +00:00
Ben Moon
f336a21926
Add skeleton
...
Add basic test helpers, triggers and handler.
2016-01-18 18:56:33 +00:00
Ben Moon
cadd1b0154
Fix issue with invalid regexes causing warnings
...
Suppresses warnings that relate to invalid compilation of the user's
regular expression.
2016-01-18 18:52:29 +00:00
Ben Moon
6e03f6aee7
Fix issue with brackets in named captures
...
For some reason it was displaying a result (when it shouldn't) if there
were brackets in the names of the capture groups.
2016-01-18 18:52:29 +00:00
Ben Moon
5a2a003503
Improve naming of results
...
Named Match (X) -> Named Capture <X>
Number Match (X) -> Subpattern Match X
2016-01-18 18:52:29 +00:00
Ben Moon
b33428914d
Correct ordering of results
...
Will display Full Match, then Named, then Numbered.
2016-01-18 18:52:29 +00:00
Ben Moon
ed622cf84b
Add support for ignore-case modifier
2016-01-18 18:52:29 +00:00
Ben Moon
242c5573ff
Add support for perl-style regex matches
...
Allows regex matches in the form `X =~ /Y/`.
2016-01-18 18:52:29 +00:00
Ben Moon
96a69e6965
Fix first match being assigned incorrectly
...
If expression had no paren-matches then the numbered matches list was
just being passed "1" - not ideal!
2016-01-18 18:52:29 +00:00